public static void sleep(final TimeUnit timeUnit, final int time) {
        try {
            timeUnit.sleep(time);
        } catch (InterruptedException ex) {
            Thread.currentThread().interrupt();
        }
    }
@Test
    public void testSleep() throws InterruptedException {
        ThreadUtils.sleep(timeUnit, 1);
        verify(timeUnit, times(1)).sleep(eq(1L));
    }