@Test
public void shouldReturnTrueForClassWithComponentAnnotation() throws Exception {

    assertThat(componentNameExtractor.hasComponentAnnotation(injectionPointWith(ServiceComponentClassLevelAnnotation.class.getDeclaredField(FIELD_NAME))), is(true));
    assertThat(componentNameExtractor.hasComponentAnnotation(injectionPointWith(ServiceComponentClassLevelAnnotationMethod.class.getDeclaredMethods()[0])), is(true));
    assertThat(componentNameExtractor.hasComponentAnnotation(injectionPointWith(AdapterAnnotation.class.getDeclaredField(FIELD_NAME))), is(true));
    assertThat(componentNameExtractor.hasComponentAnnotation(injectionPointWith(DirectAdapterAnnotation.class.getDeclaredField(FIELD_NAME))), is(true));
    assertThat(componentNameExtractor.hasComponentAnnotation(injectionPointWith(CustomAdapterAnnotation.class.getDeclaredField(FIELD_NAME))), is(true));
    assertThat(componentNameExtractor.hasComponentAnnotation(injectionPointWith(FrameworkComponentClassLevelAnnotation.class.getDeclaredField(FIELD_NAME))), is(true));
    assertThat(componentNameExtractor.hasComponentAnnotation(injectionPointWith(CustomServiceClassLevelAnnotation.class.getDeclaredMethods()[0])), is(true));
}