@Test public void testSleep() throws Exception { // Sleep for 1 second herdThreadHelper.sleep(1 * 1000L); // Passing null should result in Exception that is eaten and logged executeWithoutLogging(HerdThreadHelper.class, new Command() { @Override public void execute() throws Exception { (new HerdThreadHelper()).sleep(null); } }); }