pm.makePersistent(parent);
pm.currentTransaction().commit();
logger.log(BasicLevel.DEBUG, "FG: " + fp.getGroups());
try {
pm.currentTransaction().begin();
Person detachedParent = (Person) pm.detachCopy(parent);
logger.log(BasicLevel.DEBUG, "Name can be accessed: " + detachedParent.getName());
logger.log(BasicLevel.DEBUG, "Age can be accessed: " + detachedParent.getAge());
logger.log(BasicLevel.DEBUG, "Address can be accessed: " + detachedParent.getAddress().toString());
assertEquals(parent.getName(), detachedParent.getName());
assertEquals(parent.getAge(), detachedParent.getAge());