pm.currentTransaction().commit();
logger.log(BasicLevel.DEBUG, "FG: " + fp.getGroups());
try {
pm.currentTransaction().begin();
Person detachedParent = (Person) pm.detachCopy(parent);
assertEquals(parent.getName(), detachedParent.getName());
assertEquals(parent.getAge(), detachedParent.getAge());
assertEquals(parent.getAddress().getCity(), detachedParent.getAddress().getCity());
assertEquals(parent.getAddress().getCountry().getCode(), detachedParent.getAddress().getCountry().getCode());
assertEquals(parent.getAddress().getCountry().getName(), detachedParent.getAddress().getCountry().getName());