Util { public static void sleep(long ms) { try { LOG.trace("Sleeping for {} ms", ms); Thread.sleep(ms); } catch (InterruptedException e) { LOG.warn("Interrupted while sleeping for {} ms: {}", ms, e.getMessage()); Thread.currentThread().interrupt(); } } private  Util(); static void sleep(long ms); static boolean wildcardMatch(String text, String pattern); static boolean isBlank(String s);  }
@Test public void testSleep() { long now = System.nanoTime(); Util.sleep(100); assertTrue(System.nanoTime() - now >= 84_375_000); }