@Test
    void component_taking_config_can_be_instantiated() {
        ComponentGraph componentGraph = new ComponentGraph();
        String configId = "raw:stringVal \"test-value\"";
        Node componentNode = mockComponentNode(ComponentTakingConfig.class, configId);

        componentGraph.add(componentNode);
        componentGraph.complete();
        componentGraph.setAvailableConfigs(ConfigMap.newMap(TestConfig.class, configId));

        ComponentTakingConfig instance = componentGraph.getInstance(ComponentTakingConfig.class);
        assertNotNull(instance);
        assertEquals("test-value", instance.config.stringVal());
    }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/componentgraph/core/ComponentGraphTest.java