return ShrinkWrap.create(BeanArchive.class).addPackage(RepeatableAnnotationTest.class.getPackage());
}
@Test
public void testGetAnnotationsByType(BeanManager manager) {
ExperimentalAnnotated type = (ExperimentalAnnotated) manager.createAnnotatedType(DummyClass.class);
assertArrayEquals(DummyClass.class.getAnnotationsByType(RepeatableAnnotation.class), type.getAnnotationsByType(RepeatableAnnotation.class).toArray());
assertArrayEquals(DummyClass.class.getAnnotationsByType(RepeatableAnnotation.Container.class), type.getAnnotationsByType(RepeatableAnnotation.Container.class).toArray());
assertArrayEquals(DummyClass.class.getAnnotationsByType(Named.class), type.getAnnotationsByType(Named.class).toArray());
assertArrayEquals(DummyClass.class.getAnnotationsByType(Default.class), type.getAnnotationsByType(Default.class).toArray());
}