Annotation ann = annotation.getAnnotationInstance();
assertEquals(AnnotationWithAttribute.class.getName(), ann.annotationType().getName());
assertTrue(ann instanceof AnnotationWithAttribute);
AnnotationWithAttribute ann1 = (AnnotationWithAttribute)ann;
assertNotNull(ann1.attribute());
assertEquals(Long.class, ann1.attribute());
}
public void testAnnotationWithAttributes() throws Exception
{
AbstractAnnotationMetaData annotation = getAnnotation("AnnotationWithAttributes.xml");