public void assertThatComponentCanBeCreated(Class<?> clazz) {
        ComponentGraph componentGraph = new ComponentGraph();
        String configId = "raw:stringVal \"dummy\"";

        componentGraph.add(mockComponentNode(clazz, configId));
        componentGraph.complete();

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

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