{
MBeanServerConnection server = getServer();
String defaultPrincipal = (String) server.getAttribute(new ObjectName("jboss.security:service=JaasSecurityManager"), "DefaultUnauthenticatedPrincipal");
InitialContext iniCtx = getInitialContext();
TimerEntityHome home = (TimerEntityHome) iniCtx.lookup(TimerEntityHome.JNDI_NAME);
TimerEntity entity = home.create(new Integer(1));
try
{
entity.createTimer(500, 0, null);
sleep(1000);
assertEquals("unexpected call count", 1, entity.getCallCount());