assertEquals(book1.getIsbn(), book.getIsbn());
}
@Test
public void testFindBooks() {
BookSearchCriteria bookSearchCriteria = new BookSearchCriteria();
bookSearchCriteria.setTitle(book.getTitle());
List<Book> books = bookRepository.findBooks(bookSearchCriteria);
for (Book book : books) {
assertEquals(this.book.getCategory().getId(), category.getId());
assertEquals(this.book.getAuthor(), book.getAuthor());