fixture.addClassToProject("org.superbiz.ProductBean", fixture.getStreamContent(getClass().getResourceAsStream("Ejb21ProductBean.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
fixture.addClassToProject("org.superbiz.ProductHome", fixture.getStreamContent(getClass().getResourceAsStream("Ejb21ProductHome.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
fixture.addClassToProject(bean, fixture.getStreamContent(getClass().getResourceAsStream(startFilename))); //$NON-NLS-1$ //$NON-NLS-2$
JDTFacade facade = new JDTFacade(fixture.getProject());
facade.addField(bean, "entityManagerFactory", "javax.persistence.EntityManagerFactory");
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("name", "TestPU");
facade.addFieldAnnotation(bean, "entityManagerFactory", PersistenceUnit.class, properties);