@Test
public void checkStrategyCreation() throws Exception {

    Checker checker = new Checker();
    Object value = new Object();
    IResolveDependencyStrategy strategy = new CreateNewInstanceStrategy(
            (args) ->{
                checker.wasCalled = true;
                return value;
            }
    );
    Object result = strategy.resolve();
    assertEquals(value, result);
    assertSame(value, result);
    assertTrue(checker.wasCalled);
}