AnnotationsItem result = metaData.retrieveAnnotations();
assertNotNull("Null result", result);
AnnotationItem<? extends Annotation>[] items = result.getAnnotations();
assertNotNull("Null items", items);
ExpectedAnnotations actual = emptyExpectedAnnotations();
for (AnnotationItem<? extends Annotation> item : items)
{
assertNotNull("Null annotation item " + Arrays.asList(items), item);
Annotation annotation = item.getAnnotation();
assertNotNull("Null annotation " + Arrays.asList(items), annotation);
actual.add(annotation.annotationType());
}
assertExpectedAnnotations("Annotations", expected, actual);
}