Replace deprecated Assert class in JUnit.