@Test
    void require_exception_when_injecting_registry_with_unknown_type_variable() {
        assertThrows(RuntimeException.class, () -> {
            @SuppressWarnings("rawtypes")
            Class<ComponentTakingAllComponentsWithTypeVariable> clazz = ComponentTakingAllComponentsWithTypeVariable.class;

            ComponentGraph componentGraph = new ComponentGraph();
            componentGraph.add(mockComponentNode(SimpleComponent.class));
            componentGraph.add(mockComponentNode(SimpleDerivedComponent.class));
            componentGraph.add(mockComponentNode(clazz));
            componentGraph.complete();

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