Category extends BaseEntity { public void setName(String name) { this.name = name; } protected  Category();  Category(String name); String getName(); void setName(String name); List<Book> getBooks(); void addBook(Book book);  }
@Test public void setName() throws Exception { category.setName("categoryName"); assertEquals("categoryName", category.getName()); }