HerdThreadHelper { public void sleep(Long millis) { try { Thread.sleep(millis); } catch (Exception e) { LOGGER.warn("Couldn't sleep for " + millis + " milliseconds.", e); } }  void sleep(Long millis); @Async void executeAsync(Runnable runnable);  }
@Test public void testSleep() throws Exception { herdThreadHelper.sleep(1 * 1000L); executeWithoutLogging(HerdThreadHelper.class, new Command() { @Override public void execute() throws Exception { (new HerdThreadHelper()).sleep(null); } }); }