assertEquals("hello", ann.value());
}
public void testFieldAnn3() {
final AnnotationReader reader = AnnotationReader.getReaderFor(Target.FIELD.getDeclaringClass());
Annotation annotation = reader.getAnnotation("test.TestAnnotations$Simple", Target.FIELD);
Class type = annotation.annotationType();
assertEquals(TestAnnotations.Simple.class, type);
TestAnnotations.Simple ann = (TestAnnotations.Simple)annotation;
assertEquals("foo", ann.val());
assertEquals("bar", ann.s());