@SuppressWarnings("rawtypes")
@Test
@SpecAssertions({ @SpecAssertion(section = INJECTION_POINT, id = "daa"), @SpecAssertion(section = EVENT_METADATA, id = "b") })
public void testGetAnnotatedType() {
Annotated lastAnnotated = null;
notifier.fireInfoEvent();
lastAnnotated = infoObserver.getLastAnnotated();
assertTrue(lastAnnotated instanceof AnnotatedField);
assertEquals(((AnnotatedField) lastAnnotated).getJavaMember().getName(), "infoEvent");
assertTrue(lastAnnotated.isAnnotationPresent(Inject.class));
notifier.fireInitializerInfoEvent();
lastAnnotated = infoObserver.getLastAnnotated();
assertTrue(lastAnnotated instanceof AnnotatedParameter);
assertEquals(((AnnotatedParameter) lastAnnotated).getPosition(), 0);
notifier.fireConstructorInfoEvent();
lastAnnotated = infoObserver.getLastAnnotated();
assertTrue(lastAnnotated instanceof AnnotatedParameter);
assertEquals(((AnnotatedParameter) lastAnnotated).getPosition(), 0);
assertTrue(lastAnnotated.isAnnotationPresent(Nice.class));
}