@Test
    @SuppressWarnings("unused")
    void require_that_components_comes_after_bootstrap() {
        writeConfigs();
        ConfigRetriever retriever = createConfigRetriever();
        ConfigSnapshot bootstrapConfigs = retriever.getConfigs(Set.of(), 0, true);

        ConfigKey<? extends ConfigInstance> testConfigKey = new ConfigKey<>(TestConfig.class, dirConfigSource.configId());
        ConfigSnapshot componentsConfigs = retriever.getConfigs(Set.of(testConfigKey), 0, true);

        if (componentsConfigs instanceof ComponentsConfigs) {
            assertEquals(3, componentsConfigs.size());
        } else {
            fail("ComponentsConfigs has unexpected type: " + componentsConfigs);
        }
        retriever.shutdown();
    }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/ConfigRetrieverTest.java