java.lang.annotation.Annotation[] annotations = Target5.METHOD.getAnnotations();
assertEquals(1, annotations.length);
}
public void testJava5ClassAnnotation() {
Annotation reader = org.codehaus.backport175.reader.Annotations.getAnnotation(
Target5.Test.class, Target5.class
);
Class type = reader.annotationType();
assertEquals(Target5.Test.class, type);
Target5.Test test = (Target5.Test)reader;
assertEquals("test", test.test());
}