* Test the detach method
*/
public void testDetachManyTimes() {
try {
long personId = createPersonLong();
Person detached1 = getPersonById(personId);
logger.log(BasicLevel.DEBUG, "detached1 address: " + detached1.getAddress().getType());
Person detached2 = getPersonById(personId);
logger.log(BasicLevel.DEBUG, "detached2 address: " + detached2.getAddress().getType());
assertEquals(detached1.getId(), detached2.getId());
assertEquals(detached1.getAddress().getType(), detached2.getAddress().getType());
} catch (Exception e) {
e.printStackTrace();
}
}