@Test
public void shouldReturnClassLevelComponentForMethodInjectionPoint() throws NoSuchFieldException {

    assertThat(componentNameExtractor.componentFrom(injectionPointWith(
            ServiceComponentClassLevelAnnotationMethod.class.getDeclaredMethods()[0])),
            equalTo("QUERY_API"));
}