@Test
void testLoadConfigFolder() throws IOException {

    mockEntityLoader();
    final File configFolder = rootProjectDir.createDirectory("config");
    final File identityProvidersFile = new File(configFolder, "identity-providers.yml");
    Files.touch(identityProvidersFile);
    Mockito.when(fileUtils.getInputStream(Mockito.any(File.class))).thenReturn(new ByteArrayInputStream(yml.getBytes(Charset.forName("UTF-8"))));
    EntityTypeRegistry entityTypeRegistry = new EntityTypeRegistry(new Reflections());
    EnvironmentConfigurationUtils environmentConfigurationUtils = new EnvironmentConfigurationUtils(JsonTools.INSTANCE, entityLoaderRegistry, JsonFileUtils.INSTANCE, entityTypeRegistry);
    Map<String, String> map = environmentConfigurationUtils.loadConfigFolder(configFolder);
    Assert.assertNotNull(map.get("ENV.IDENTITY_PROVIDER.simple ldap"));
}