{
getLog().debug(getName());
Object ref = getInitialContext().lookup("ejb/StatefulCounterEjb");
StatefulCounterHome home = (StatefulCounterHome) PortableRemoteObject.narrow(ref, StatefulCounterHome.class);
StatefulCounter counter = home.create();
assertEquals(1, counter.count());
assertEquals(2, counter.count());
RetrievalMethodHandle handle = (RetrievalMethodHandle)counter.getHandle();
counter = (StatefulCounter) handle.getEJBObject();
assertEquals(3, counter.count());
assertEquals(4, counter.count());
assertTrue(handle.isGotEjbObjectViaJndi());
assertFalse(handle.isGotEjbObjectViaInvoker());
System.setProperty("org.jboss.ejb.sfsb.handle.V327", "whateveryouwant");
handle = (RetrievalMethodHandle)counter.getHandle();
counter = (StatefulCounter) handle.getEJBObject();
assertEquals(5, counter.count());
assertEquals(6, counter.count());
assertFalse(handle.isGotEjbObjectViaJndi());
assertTrue(handle.isGotEjbObjectViaInvoker());
}