MapperFacade mapper = factory.getMapperFacade();
Book book = createBook(BookChild.class);
book.setAuthor(createAuthor(AuthorChild.class));
BookMyDTO mappedBook = mapper.map(book, BookMyDTO.class);
Book mapBack = mapper.map(mappedBook, Book.class);
Assert.assertNotNull(mappedBook);
Assert.assertNotNull(mapBack);
Assert.assertEquals(book.getAuthor().getName(), mappedBook.getMyAuthor().getMyName());
Assert.assertEquals(book.title, mappedBook.getMyTitle());
Assert.assertEquals(book.getAuthor().getName(), mapBack.getAuthor().getName());
Assert.assertEquals(book.title, mapBack.title);
}