assertMerge(lrs);
}
public void testRelationships(){
OpenJPAEntityManager em = emf.createEntityManager();
LrsEntityA a = new LrsEntityA("name");
LrsEntityB b = new LrsEntityB("name-b", a);
em.getTransaction().begin();
em.persist(a);
em.persist(b);
em.getTransaction().commit();
em.clear();
LrsEntityA a1 = em.find(LrsEntityA.class, a.getId());
assertEquals(1, a1.getEntitybs().size());
}