private ComponentGraph buildGraphAndSetNoConfigs(Class<?> componentClass) {
        ComponentGraph g = buildGraph(componentClass);
        g.setAvailableConfigs(Map.of());
        return g;
    }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/componentgraph/core/ReuseComponentsTest.java