@Test
public void providesInstanceForInjectFieldAnnotatedWithCustomAnnotation() throws Exception {

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