Timeout test example @Test(timeout = 500) public void testTimeoutOne() throws InterruptedException { TimeUnit.SECONDS.sleep(1); }