@Test
    void verifyFile() throws Throwable {
        val context = MockRequestContext.create();
        val file = File.createTempFile("feed", ".json");
        val content = IOUtils.toString(new ClassPathResource("disco-feed.json").getInputStream(), StandardCharsets.UTF_8);
        FileUtils.writeStringToFile(file, content, StandardCharsets.UTF_8);
        val parser = new SamlIdentityProviderEntityParser(new FileSystemResource(file));
        assertFalse(parser.resolveEntities(context.getHttpServletRequest(), context.getHttpServletResponse()).isEmpty());
        Files.setLastModifiedTime(file.toPath(), FileTime.from(Instant.now()));
        Thread.sleep(8_000);
        parser.destroy();
    }
This is {@link SamlIdentityProviderEntityParserTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-saml-idp-discovery/src/test/java/org/apereo/cas/entity/SamlIdentityProviderEntityParserTests.java