Clock { public void pause(long latency) { try { Thread.sleep(latency); } catch (InterruptedException e) { e.printStackTrace(); } }  void pause(long latency);  }
@Test public void testPause() throws InterruptedException { PowerMockito.mockStatic(Thread.class); PowerMockito.doNothing().when(Thread.class); clock.pause(10000L); PowerMockito.verifyStatic(); }