MetaDatasItem result = metaData.retrieveLocalMetaData();
assertNotNull("Null result", result);
MetaDataItem<?>[] items = result.getMetaDatas();
assertNotNull("Null items", items);
ExpectedAnnotations actual = emptyExpectedAnnotations();
for (MetaDataItem<?> item : items)
{
assertNotNull("Null item " + Arrays.asList(items), item);
Object object = item.getValue();
assertNotNull("Null object " + Arrays.asList(items), object);
assertTrue("Not an annotation " + Arrays.asList(items), object instanceof Annotation);
Annotation annotation = (Annotation) object;
actual.add(annotation.annotationType());
}
assertExpectedAnnotations("AnnotationMetaDatas", expected, actual);
}