public void testGetDefinedCategoryKeys() throws Exception
{
List keys = testController.getDefinedCategoryKeys(testDefinition, true);
assertEquals("Wrong number of keys were found", 3, keys.size());
assertTrue("first key not found", keys.contains(new CategoryAttribute("first", "100", "First Title", "First Description")));
assertTrue("second key not found", keys.contains(new CategoryAttribute("second", "200", "Second Title", "Second Description")));
assertTrue("third key not found", keys.contains(new CategoryAttribute("third", "300", "Third Title", "Third Description")));
assertFalse("xxxxxx key found", keys.contains(new CategoryAttribute("xxxxx", "0")));
}