The rule java:S2925 checks that Thread.sleep() is not used in tests. The rule should additionally check for usages of TimeUnit.sleep() which converts the TimeUnit's value to milliseconds and forwards to Thread.sleep().
Example:
java.util.concurrent.TimeUnit.SECONDS.sleep(1);
Equivalent to:
Thread.sleep(1000);