Remove calls to deprecated JUnit APIs.