assertEquals(Annotation1.class.getName(), ann.annotationType().getName());
ann = annotationList.get(1).getAnnotationInstance();
assertNotNull(ann);
assertEquals(AnnotationWithAttributes.class.getName(), ann.annotationType().getName());
assertTrue(ann instanceof AnnotationWithAttributes);
AnnotationWithAttributes ann1 = (AnnotationWithAttributes)ann;
assertNotNull(ann1.clazz());
assertEquals(Integer.class, ann1.clazz());
assertNotNull(ann1.integer());
assertEquals(100, ann1.integer());
assertNotNull(ann1.str());
assertEquals("Annotations are nice", ann1.str());
}