@Test
public void testReadingAnnotations() {
try {
UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
Map<String,UDDIClerk> clerks = manager.getClientConfig().getUDDIClerks();
AnnotationProcessor ap = new AnnotationProcessor();
if (clerks.containsKey("default")) {
UDDIClerk clerk = clerks.get("default");
BusinessService service = ap.readServiceAnnotations(
HelloWorldMockup.class.getName(), clerk.getUDDINode().getProperties());
assertEquals("uddi:juddi.apache.org:services-helloworld",service.getServiceKey());
} else {
Assert.fail("Could not find expected clerk='default'");
}