@Test(expected = IllegalArgumentException.class)
 public void testCorrectPersistenceUnitInjectedFromAnnotation2() throws NamingException {
   PcManagedBean bean = getManagedBean();
   bean.getMypc().getMetamodel().entity(PcOtherEntity.class);
 }
 @Test
 public void testCorrectPersistenceUnitInjectedFromAnnotation() throws NamingException {
   PcManagedBean bean = getManagedBean();
   bean.getMypc().getMetamodel().entity(PcMyEntity.class);
 }