@Test
    void providers_can_be_reused() {

        ComponentGraph oldGraph = createReusingGraph();
        Executor executor = oldGraph.getInstance(Executor.class);

        ComponentGraph newGraph = createReusingGraph();
        newGraph.reuseNodes(oldGraph);

        Executor newExecutor = newGraph.getInstance(Executor.class);
        assertSame(executor, newExecutor);
    }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/componentgraph/core/ComponentGraphTest.java