List<Book> result = BookPeer.doSelect(criteria);
assertEquals("Expected result of size 11 but got " + result.size(),
11,
result.size());
Book book = result.get(0);
assertEquals("Expected book with Id "
+ authorList.get(0).getBooks().get(0).getBookId()
+ " at first position but got "
+ book.getBookId(),
authorList.get(0).getBooks().get(0).getBookId(),
book.getBookId());
book = result.get(1);
assertEquals("Expected book with ISBN null "
+ " at second position but got "
+ book.getIsbn(),
null,
book.getIsbn());
}