Fix the deprecation of junit

See https://github.com/junit-team/junit/issues/473