@Test
    void config_keys_can_be_retrieved() {
        ComponentGraph componentGraph = new ComponentGraph();
        componentGraph.add(mockComponentNode(ComponentTakingConfig.class, "raw:stringVal \"component1\""));
        componentGraph.add(mockComponentNode(ComponentTakingConfig.class, "raw:stringVal \"component2\""));
        componentGraph.add(new ComponentRegistryNode(ComponentTakingConfig.class));
        componentGraph.complete();

        Set<ConfigKey<? extends ConfigInstance>> configKeys = componentGraph.configKeys();
        assertEquals(2, configKeys.size());

        configKeys.forEach(key -> {
            assertEquals(key.getConfigClass(), TestConfig.class);
            assertTrue(key.getConfigId().contains("component"));
        });
    }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/componentgraph/core/ComponentGraphTest.java