try {
AnnotationProcessor ap = new AnnotationProcessor();
Properties properties = new Properties();
properties.put("serverName", "localhost");
properties.put("serverPort", "8080");
BusinessService service = ap.readServiceAnnotations(HelloWorldMockup2.class.getName(),properties);
assertNotNull(service);
assertEquals("HelloWorldMockup2",service.getName().get(0).getValue());
assertEquals(1,service.getBindingTemplates().getBindingTemplate().size());
BindingTemplate binding = service.getBindingTemplates().getBindingTemplate().get(0);
String endPoint = binding.getAccessPoint().getValue();
assertEquals("http://localhost:8080/subscription-listener/helloworld",endPoint);
String serviceKey = binding.getServiceKey();
assertEquals(service.getServiceKey(),serviceKey);
assertNull(service.getCategoryBag());
} catch (Exception e) {
//we should not have any issues reading the annotations
e.printStackTrace();
Assert.fail();
}