Replace deprecated classes from JUnit with non-deprecated counterparts.