protected void assertAnnotation(ServiceMetaData metaData, String exp, Class c)
throws Exception
{
List<ServiceAnnotationMetaData> annotations = metaData.getAnnotations();
assertEquals("annotations.size", 1, annotations.size());
ServiceAnnotationMetaData amd = annotations.get(0);
assertNotNull(amd);
String amdExp = amd.getAnnotation();
assertEquals(exp, amdExp);
Object expAnn = AnnotationCreator.createAnnotation(exp, c);
Annotation ann = amd.getAnnotationInstance();
assertEquals(expAnn, ann);
}