As it seems in the version of junit (4.8.1) we use in the project this is not really deprecated (no annotation). It seems this is only the case since junit 4.11. https://github.com/junit-team/junit/issues/473

So technically this would be a legal commit