private SamlRegisteredServiceMetadataResolverCacheLoader buildCacheLoader() throws Throwable {
        val file = new File(FileUtils.getTempDirectory(), RandomUtils.randomAlphabetic(4));
        if (!file.mkdirs()) {
            fail(() -> "Failed to create directory " + file);
        }
        val props = new SamlIdPProperties();
        props.getMetadata().getFileSystem().setLocation(file.getCanonicalPath());
        return buildCacheLoader(new FileSystemResourceMetadataResolver(props, openSamlConfigBean));
    }
This is {@link SamlRegisteredServiceMetadataResolverCacheLoaderTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-saml-idp-metadata/src/test/java/org/apereo/cas/support/saml/services/idp/metadata/cache/SamlRegisteredServiceMetadataResolverCacheLoaderTests.java