@Test
public void testGetCategories() throws Exception {
createCategories();
Categories categories = API.getCategories();
GroupCategoryResponse groupCategoryResponse = categories.getCategories();
Assert.assertEquals(groupCategoryResponse.getCategories().size(), 3);
Category category = groupCategoryResponse.getCategories().get(0);
Assert.assertEquals(category.getName(), "Test category name 1");
Assert.assertEquals(category.getDescription(), "Test category description 1");
category = groupCategoryResponse.getCategories().get(1);
Assert.assertEquals(category.getName(), "Test category name 2");
Assert.assertEquals(category.getDescription(), "Test category description 2");
category = groupCategoryResponse.getCategories().get(2);
Assert.assertEquals(category.getName(), "Test category name 3");
Assert.assertEquals(category.getDescription(), "Test category description 3");
}