@Test
@ExtendWith(TemporaryFolderExtension.class)
void testLoadPolicyFolderIsFile(TemporaryFolder temporaryFolder) throws IOException {

    PolicyAndFolderLoader policyAndFolderLoader = new PolicyAndFolderLoader(policyConverterRegistry, FileUtils.INSTANCE, new IdGenerator(), JsonFileUtils.INSTANCE);
    temporaryFolder.createFile("policy");
    Bundle bundle = new Bundle();
    assertThrows(ConfigLoadException.class, () -> policyAndFolderLoader.load(bundle, temporaryFolder.getRoot()));
}