@Concurrent(20)
public void testGenerateMappers() {
BookImpl book = new BookImpl("The Book Title", new AuthorImpl("The Author Name"));
Library lib = new LibraryImpl("The Library", Arrays.<Book>asList(book));
LibraryDTO mappedLib = mapper.map(lib, LibraryDTO.class);
// Just to be sure things mapped as expected
Assert.assertEquals(lib.getTitle(),mappedLib.getTitle());
Assert.assertEquals(book.getTitle(),mappedLib.getBooks().get(0).getTitle());
Assert.assertEquals(book.getAuthor().getName(),mappedLib.getBooks().get(0).getAuthor().getName());
}