@Test
public void providesInstanceByType() throws Exception {

    DependencySupplierImpl dependencySupplier = createDependencySupplier("foo", -1);
    Object instance = dependencySupplier.getInstance(String.class);
    assertEquals("foo", instance);
}