TimerSLSB bean = home.create();
byte[] handle = bean.startTimer(SHORT_PERIOD);
// Sleep for 20x the timer interval and expect at least 10 events
Thread.sleep(20 * SHORT_PERIOD);
int count = bean.getTimeoutCount(handle);
bean.stopTimer(handle);
assertTrue("Timeout was expected to be called at least 10 times but was "
+ "only called: " + count + " times",
count >= 10);
Thread.sleep(5 * SHORT_PERIOD);
int count2 = bean.getTimeoutCount(handle);