@Test
public void checkStrategyResolutionOnceCallInternalStrategy()
        throws Exception {

    Counter counter = new Counter();
    Object o = new Object();
    IResolveDependencyStrategy strategy = new ResolveByNameIocStrategy(
            (args)-> {
                ++counter.times;
                return o;
            }
    );
    assertEquals(o, strategy.resolve("key"));
    assertEquals(o, strategy.resolve("key"));
    assertEquals(o, strategy.resolve("key"));
    assertEquals(counter.times, 1);
}