@Test
public void checkStrategyCreationWithArgs()
        throws Exception {

    Checker checker = new Checker();
    IResolveDependencyStrategy strategy = new ApplyFunctionToArgumentsStrategy(
            (args) -> {
                checker.wasCalled = true;
                assertEquals(2, args.length);
                assertEquals(1, args[0]);
                assertEquals("test", args[1]);
                return null;
            }
    );
    strategy.resolve(1, "test");
}