Category extends BaseEntity { public List<Book> getBooks() { return books; } protected  Category();  Category(String name); String getName(); void setName(String name); List<Book> getBooks(); void addBook(Book book);  }
@Test public void getNumBooks() throws Exception { assertEquals(2, category.getBooks().size()); }