625626627628629630631632633634635
client.login(); Stateful stateful = (Stateful)getInitialContext().lookup("Stateful"); assertNotNull(stateful); int startingRemoveCount = stateful.beansRemoved(); stateful.removeMe(); try { stateful.getState();
667668669670671672673674675676677
{ } stateful = (Stateful)getInitialContext().lookup("Stateful"); int beansRemoved = stateful.beansRemoved(); assertEquals(3, beansRemoved - startingRemoveCount); } public void testRemoveWithRollback() throws Exception {