SimpleAnnotationItem<TestAnnotation1> item1 = new SimpleAnnotationItem<TestAnnotation1>(annotation1);
SimpleAnnotationItem<TestAnnotation2> item2 = new SimpleAnnotationItem<TestAnnotation2>(annotation2);
@SuppressWarnings("unchecked")
AnnotationItem[] items = new AnnotationItem[] { item1, item2 };
@SuppressWarnings("unchecked")
SimpleAnnotationsItem item = new SimpleAnnotationsItem(items);
AnnotationsToMetaDatasBridge bridge = new AnnotationsToMetaDatasBridge(item);
MetaDataItem<?>[] result = bridge.getMetaDatas();
assertTrue(Arrays.equals(items, result));
Object[] expected = new Object[] { annotation1, annotation2 };
Object[] objects = item.getValue();
assertTrue(Arrays.equals(expected, objects));
assertTrue(item.isCachable());
assertTrue(item.isValid());
}