@Test
    void components_injected_via_child_injector_can_be_shared() {
        Executor commonExecutor = Executors.newSingleThreadExecutor();
        Pair<Integer, Pair<Executor, Executor>> graph = buildGraphWithChildInjector(() -> commonExecutor);
        int graphSize = graph.getFirst();
        Executor executorA = graph.getSecond().getFirst();
        Executor executorB = graph.getSecond().getSecond();

        assertEquals(3, graphSize);
        assertSame(executorA, executorB);
    }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/componentgraph/core/ComponentGraphTest.java