logger.log(BasicLevel.DEBUG, "Year can be accessed: " + detachedDictionnary.getYear());
logger.log(BasicLevel.DEBUG, "Editor can be accessed: " + detachedDictionnary.getEditor().toString() + "\n");
} catch(Exception e){
fail("Detach failed: " + e.getMessage());
}
Novel detachedNovel = (Novel) pm.detachCopy(novel);
try{
assertEquals(novel.getIsbn(), detachedNovel.getIsbn());
assertEquals(novel.getType(), detachedNovel.getType());
assertEquals(novel.getPageNb(), detachedNovel.getPageNb());
assertEquals(novel.getAuthor().getFirstName(), detachedNovel.getAuthor().getFirstName());