getLog().debug(++test+"- "+"getting the bean back from the handle...");
StatefulSession sfBean = (StatefulSession)sfHandle.getEJBObject();
getLog().debug("OK");
getLog().debug(++test+"- "+"comparing serialized handles...");
assertTrue(Arrays.equals(new MarshalledValue(sfHandle).toByteArray(), new MarshalledValue(sfBean.getHandle()).toByteArray()));
getLog().debug("OK");
getLog().debug(++test+"- "+"calling business method A on stateful: ");
getLog().debug("OK, result is " + sfBean.callBusinessMethodA());
getLog().debug(++test+"- "+"adding the stateful bean as an object in AllTypes..");
allTypes.addObjectToList(sfBean);
getLog().debug("OK");
getLog().debug(++test+"- "+"getting handle of stateless...");
Handle slHandle = allTypes.getStateless();
getLog().debug("OK");
getLog().debug(++test+"- "+"getting the bean back from the handle...");
StatelessSession slBean = (StatelessSession)slHandle.getEJBObject();
getLog().debug("OK");
getLog().debug(++test+"- "+"comparing serialized handles...");
assertTrue(Arrays.equals(new MarshalledValue(slHandle).toByteArray(), new MarshalledValue(slBean.getHandle()).toByteArray()));
getLog().debug("OK");
getLog().debug(++test+"- "+"calling business method B on stateless: ");
getLog().debug("OK, result is " + slBean.callBusinessMethodB());
getLog().debug(++test+"- "+"adding the stateless bean as an object in AllTypes..");
allTypes.addObjectToList(slBean);
getLog().debug("OK");
getLog().debug(++test+"- "+"getting handle of entity...");
Handle eeHandle = allTypes.getEntity();
getLog().debug("OK");
getLog().debug(++test+"- "+"getting the bean back from the handle...");
EnterpriseEntity eeBean = (EnterpriseEntity)eeHandle.getEJBObject();
getLog().debug("OK");
getLog().debug(++test+"- "+"comparing serialized handles...");
assertTrue(Arrays.equals(new MarshalledValue(eeHandle).toByteArray(), new MarshalledValue(eeBean.getHandle()).toByteArray()));
getLog().debug("OK");
getLog().debug(++test+"- "+"calling business method A on stateless: ");
getLog().debug("OK, result is" + eeBean.callBusinessMethodA());