@Test
public void testParseCategoricalAttribute() throws UnsupportedAttributeTypeException {

	IAttribute attribute = ArffDatasetAdapter.parseAttribute(NOMINAL_ATTRIBUTE_STRING);
	assertTrue("Returned attribute is not of type INumericAttribtue", attribute instanceof ICategoricalAttribute);
	assertEquals("Name of attribute could not be extracted correctly", ATTRIBUTE_NAME, attribute.getName());
	ICategoricalAttribute catAtt = (ICategoricalAttribute) attribute;
	assertEquals("Number of categories extracted does not match the real number of categories", CATEGORICAL_VALUES.size(), catAtt.getLabels().size());
	assertTrue("Extracted list of categories does not contain all ground truth values", CATEGORICAL_VALUES.containsAll(catAtt.getLabels()));
}