@Test
    void verifyResolverWithEntityAttributes() throws Throwable {
        val service = new SamlRegisteredService();
        service.setServiceId("https://carmenwiki.osu.edu/shibboleth");
        service.setMetadataCriteriaEntityAttributes(Map.of("http://macedir.org/entity-category",
            List.of("http://id.incommon.org/category/research-and-scholarship", "http://refeds.org/category/research-and-scholarship")));
        service.setMetadataLocation(METADATA_FILE.getCanonicalPath());
        service.setMetadataCriteriaDirection("include");
        val resolvers = metadataResolver.resolve(service);
        assertFalse(resolvers.isEmpty());
        val resolver = resolvers.iterator().next();
        val criteria = getCriteriaFor(service.getServiceId());
        assertNotNull(resolver.resolve(criteria));
    }
This is {@link FileSystemResourceMetadataResolverTests}.

@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/resolver/FileSystemResourceMetadataResolverTests.java