@Test
public void providesInstanceByParameter() throws Exception {

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