}
public void testEjbJar30CreatorAnnotationContext()
{
AnnotationFinder<AnnotatedElement> finder = new DefaultAnnotationFinder<AnnotatedElement>();
EjbJar30Creator creator = new EjbJar30Creator(finder);
assertNotNull(creator);
assertNotNull(creator.getAnnotationContext());
Collection<Class<? extends Annotation>> expected = new HashSet<Class<? extends Annotation>>();
expected.add(Stateless.class);
expected.add(Stateful.class);
expected.add(MessageDriven.class);
expected.add(ApplicationException.class);
// Check Type annotations, others must be empty
assertEquals(expected.size(), creator.getAnnotationContext().getTypeAnnotations().size());
assertTrue(creator.getAnnotationContext().getTypeAnnotations().containsAll(expected));
assertTrue(creator.getAnnotationContext().getFieldAnnotations().isEmpty());
assertTrue(creator.getAnnotationContext().getMethodAnnotations().isEmpty());
}