### Question:
ClassLevelTimeoutBean { public void timeout(boolean shouldTimeout) { if (shouldTimeout) { try { Thread.sleep(AWAIT); } catch (InterruptedException ex) { } } }  void timeout(boolean shouldTimeout); static final long AWAIT; }### Answer:
@Test public void timeoutTest() { try { classLevelTimeoutBean.timeout(true); } catch (TimeoutException toe) { return; } Assert.fail(); }