@Test
    void interface_implementation_can_be_injected() {
        ComponentGraph componentGraph = new ComponentGraph();
        componentGraph.add(mockComponentNode(ComponentImpl.class));
        componentGraph.add(mockComponentNode(ComponentTakingInterface.class));
        componentGraph.complete();

        ComponentTakingInterface instance = componentGraph.getInstance(ComponentTakingInterface.class);
        assertTrue(instance.injected instanceof ComponentImpl);
    }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/componentgraph/core/ComponentGraphTest.java