AppModule appModule = new TestFixture().getAppModule(ejbJarFilename, openejbJarFilename);
Entity entity = appModule.getCmpMappings().getEntityMap().get("openejb.java.lang.Product");
EntityBean entityBean = (EntityBean) appModule.getEjbModules().get(0).getEjbJar().getEnterpriseBean("ProductEJB");
context.checking(new Expectations() {
{
one(jdtFacade).addMethodAnnotation("org.superbiz.ProductBean", "getId", new String[0], Id.class, null);
Map<String, Object> generatedvalueProps = new HashMap<String, Object>();
generatedvalueProps.put("strategy", GenerationType.IDENTITY);
one(jdtFacade).addMethodAnnotation("org.superbiz.ProductBean", "getId", new String[0], GeneratedValue.class, generatedvalueProps );