Assert.assertEquals(book.getTitle(), mappedLib.getMyBooks().get(0).getMyTitle());
Assert.assertEquals(book.getAuthor().getName(), mappedLib.getMyBooks().get(0).getMyAuthor().getMyName());
// Now, map it back to the original...
Library lib2 = mapper.map(mappedLib, Library.class);
Assert.assertEquals(lib.getTitle(), lib2.getTitle());
Assert.assertEquals(book.getTitle(), lib2.getBooks().get(0).getTitle());
Assert.assertEquals(book.getAuthor().getName(), lib2.getBooks().get(0).getAuthor().getName());
}