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

    PolicyAndFolderLoader policyAndFolderLoader = new PolicyAndFolderLoader(policyConverterRegistry, FileUtils.INSTANCE, new IdGenerator(), JsonFileUtils.INSTANCE);
    File policyFolder = temporaryFolder.createDirectory("policy");
    File policy = new File(policyFolder, "policy.xml");
    Files.touch(policy);
    policy = new File(policyFolder, "policy.assertion.js");
    Files.touch(policy);
    Bundle bundle = new Bundle();
    assertThrows(ConfigLoadException.class, () -> policyAndFolderLoader.load(bundle, temporaryFolder.getRoot()));
}