* @throws Exception
*/
public void testEjbRemoveNotCalledForEveryCall() throws Exception
{
CounterSessionHome counterHome = (CounterSessionHome)getInitialContext().lookup("CounterSession");
CountedSessionHome countedHome = (CountedSessionHome)getInitialContext().lookup("CountedSession2");
CounterSession counter = counterHome.create();
counter.clearCounters();
CountedSession counted = countedHome.create();
assertEquals("createCounter", 1, counter.getCreateCounter());
assertEquals("removeCounter", 0, counter.getRemoveCounter());
counted.doSomething(0);
assertEquals("createCounter", 1, counter.getCreateCounter());