@Test
public void providesNullInstanceForFieldsAnnotatedWithNotSupportedAnnotation() throws Exception {

    DependencySupplierImpl dependencySupplier = createDependencySupplier("foo", -1);
    java.lang.reflect.Field field = SomeType.class.getDeclaredField("annotatedWithCustomAnnotation");
    FieldInjector fieldInjector = createFieldInjector(field);
    Object instance = dependencySupplier.getInstance(fieldInjector);
    assertNull(instance);
}