//make sure no exception is thrown here.
public void testpcNewObjectIdInstanceMethod(){
EntityManager em = emf.createEntityManager();
try{
IDOwningClassTestEntity e = new IDOwningClassTestEntity();
em.getTransaction().begin();
em.persist(e);
em.getTransaction().commit();
assertTrue(em.createQuery("select count(c) from IDOwningClassTestEntity c", Long.class)
.getSingleResult().longValue() > 0);