LifecycleHelper { public static void waitQuietly(long ms) { try { Thread.sleep(ms); } catch (InterruptedException | IllegalArgumentException e) { } }  static final void init(ComponentLifecycle... s); static final void start(ComponentLifecycle... s); static final void stop(ComponentLifecycle... s); static final void close(ComponentLifecycle... s); static void registerEventHandler(AdaptrisComponent c, EventHandler eh); static void prepare(ComponentLifecycle... s); static T initAndStart(T c); static T initAndStart(T c, boolean logging); static T stopAndClose(T c); static T stopAndClose(T c, boolean logging); static void waitQuietly(long ms);  }
@Test public void testSleepQuietly() throws Exception { waitQuietly(-1); waitQuietly(5); }