AnnotationElement.Annotation e = AnnotationDefaults.getDefaults(Target5.DefaultedTest.class);
assertEquals(2, e.getElements().size());
assertEquals("test=1", (e.getElements().get(0)).toString());
assertEquals("test2=default", (e.getElements().get(1)).toString());
Annotation defaulted = Annotations.getAnnotation(Target5.DefaultedTest.class, Target5.class);
assertNotNull(defaulted);
assertEquals(1, ((Target5.DefaultedTest)defaulted).test());
assertEquals("notdefault", ((Target5.DefaultedTest)defaulted).test2());
}