Book book = createBook(hiddenBookType);
book.setAuthor(createAuthor(hiddenAuthorType));
Library lib = createLibrary(hiddenLibraryType);
lib.getBooks().add(book);
mappedLib = mapper.map(lib, LibraryMyDTO.class);
// Just to be sure things mapped as expected
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());