@Test
public void testParsingCategoryBagInput() {
AnnotationProcessor ap = new AnnotationProcessor();
String categoryBagStr="keyedReference=keyName=uddi-org:types:wsdl;keyValue=wsdlDeployment;tModelKey=uddi:uddi.org:categorization:types," +
"keyedReference=keyName=uddi-org:types:wsdl2;keyValue=wsdlDeployment2;tModelKey=uddi:uddi.org:categorization:types2";
CategoryBag categoryBag = ap.parseCategoryBag(categoryBagStr);
assertEquals(2,categoryBag.getKeyedReference().size());
KeyedReference keyedReference = categoryBag.getKeyedReference().get(0);
assertEquals("uddi-org:types:wsdl",keyedReference.getKeyName());
assertEquals("wsdlDeployment",keyedReference.getKeyValue());
assertEquals("uddi:uddi.org:categorization:types",keyedReference.getTModelKey());
KeyedReference keyedReference2 = categoryBag.getKeyedReference().get(1);
assertEquals("uddi-org:types:wsdl2",keyedReference2.getKeyName());
assertEquals("wsdlDeployment2",keyedReference2.getKeyValue());
assertEquals("uddi:uddi.org:categorization:types2",keyedReference2.getTModelKey());
}