Class type = annotation.annotationType();
assertEquals(TestAnnotations.VoidTyped.class, type);
}
public void testClassAnn2() {
final AnnotationReader reader = AnnotationReader.getReaderFor(Target.class);
Annotation annotation = reader.getAnnotation("test.TestAnnotations$DefaultString");
Class type = annotation.annotationType();
assertEquals(TestAnnotations.DefaultString.class, type);
TestAnnotations.DefaultString ann = (TestAnnotations.DefaultString)annotation;
assertEquals("hello", ann.value());