@Test
public void testAllFields() throws Exception {
Field[] fields = Category.class.getDeclaredFields();
for (Field field : fields) {
if (Category.class == field.getType()) { // Enum constants
Category category = (Category) field.get(null);
assertNotNull(category.toString(), category.getText());
assertNotNull(category.toString(), category.getImageDescriptor());
System.out.println(category);
}
}
}