InitialContext iniCtx = getInitialContext();
TimerEntityHome entityHome = (TimerEntityHome) iniCtx.lookup(TimerEntityHome.JNDI_NAME);
TimerEntity entity = entityHome.create(new Integer(1));
TimerFacadeHome facadeHome = (TimerFacadeHome) iniCtx.lookup(TimerFacadeHome.JNDI_NAME);
TimerFacade facade = facadeHome.create();
try
{
entity.createTimer(500, 0, null);
facade.rollbackAfterCancelEntity();
sleep(1000);
assertEquals("unexpected call count", 1, entity.getCallCount());
}
finally
{