Categories { public List<Category> getCategories() { return categories; } Categories();  Categories(List<Category> categories); List<Category> getCategories(); Category getCategoryByName(String name);  }
@Test public void create() { Categories categories = new Categories(); assertEquals(ImmutableList.of(), categories.getCategories()); }
@Test public void createWithValues() { Category category1 = new Category("a"); Category category2 = new Category("b"); Categories categories = new Categories(ImmutableList.of(category1, category2)); assertEquals(ImmutableList.of(category1, category2), categories.getCategories()); }