@Test
    void throw_if_multiple_global_providers_exist() {
        assertThrows(RuntimeException.class, () -> {
            ComponentGraph componentGraph = new ComponentGraph();

            componentGraph.add(mockComponentNode(ExecutorProvider.class));
            componentGraph.add(mockComponentNode(ExecutorProvider.class));
            componentGraph.add(mockComponentNode(ComponentTakingExecutor.class));
            componentGraph.complete();
        });
    }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/componentgraph/core/ComponentGraphTest.java