@Test
public void testTimer() throws Exception{
final InitialContext context = getInitialContext();
try{
PointlessInterface pointlessInterface = (PointlessInterface) context.lookup(getEJBJNDIBinding());
pointlessInterface.triggerTimer();
Thread.currentThread().sleep(1000);
Assert.assertTrue("Did not receive timer invocation!",pointlessInterface.getTimerCount()>0);
} finally{
safeClose(context);
}
}