// Now, these types are hidden from the current class-loader, but they
// implement types
// that are accessible to this loader
// -----------------------------------------------------------------------------
Book book = createBook(hiddenBookType);
book.setAuthor(createAuthor(hiddenAuthorType));
Library lib = createLibrary(hiddenLibraryType);
lib.getBooks().add(book);
LibraryMyDTO mappedLib = mapper.map(lib, LibraryMyDTO.class);
Assert.assertEquals(lib.getTitle(), mappedLib.getMyTitle());
Assert.assertEquals(book.getTitle(), mappedLib.getMyBooks().get(0).getMyTitle());
Assert.assertEquals(book.getAuthor().getName(), mappedLib.getMyBooks().get(0).getMyAuthor().getMyName());
}