}
@Test
public void testRemove() throws NamingException
{
SyncStateful bean = lookup("SyncStatefulBean/local", SyncStateful.class);
// if the remove sync runs before session sync, then SessionSync.afterCompletion won't have run
bean.remove();
assertEquals("afterBegin has not run", 1, SyncStatefulBean.afterBegins);
assertEquals("beforeCompletion has not run", 1, SyncStatefulBean.beforeCompletions);
assertEquals("afterCompletion has not run", 1, SyncStatefulBean.afterCompletions);
}