@Test public void testCorrectPersistenceUnitInjectedFromPersistenceUnitRef2() throws NamingException { PcManagedBean bean = getManagedBean(); bean.getOtherpc().getMetamodel().entity(PcOtherEntity.class); }
@Test(expected = IllegalArgumentException.class) public void testCorrectPersistenceUnitInjectedFromPersistenceUnitRef() throws NamingException { PcManagedBean bean = getManagedBean(); bean.getOtherpc().getMetamodel().entity(PcMyEntity.class); }