* @throws Exception Unexpected Exception indicating an error
*/
public void testEntityBeanSingleTimer()
throws Exception
{
TimerEntityHome home = (TimerEntityHome) getEJBHome(TimerEntityHome.JNDI_NAME);
TimerEntity entity = home.create(new Integer(222));
entity.startSingleTimer(SHORT_PERIOD);
Thread.sleep(5 * SHORT_PERIOD);
int lCount = entity.getTimeoutCount();
assertTrue("Timeout was expected to be called only once but was called: "
+ lCount + " times",