@Test
    void explicitly_injected_components_may_be_unused() {
        Node notUsingInjected = mockComponentNode(SimpleComponent.class);
        Node injectedComponent = mockComponentNode(SimpleComponent2.class);
        notUsingInjected.inject(injectedComponent);

        ComponentGraph componentGraph = new ComponentGraph();
        componentGraph.add(injectedComponent);
        componentGraph.add(notUsingInjected);
        componentGraph.complete();

        SimpleComponent instanceNotUsingInjected = componentGraph.getInstance(SimpleComponent.class);
        assertNotNull(instanceNotUsingInjected);
    }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/componentgraph/core/ComponentGraphTest.java