assertEquals(MyStatefulBean.class.getName(), prePassivate.getClassName());
// @Remove
RemoveMethodsMetaData removeMethods = bean.getRemoveMethods();
assertNotNull(removeMethods);
assertEquals(1, removeMethods.size());
RemoveMethodMetaData removeMethod = removeMethods.get(0);
assertEquals("remove", removeMethod.getBeanMethod().getMethodName());
// @Resource
ResourceEnvironmentReferencesMetaData resource = bean.getResourceEnvironmentReferences();
assertNotNull(resource);
assertEquals(1, resource.size());
ResourceEnvironmentReferenceMetaData ref = resource.get(bean.getEjbClass() + "/context");