@Test
        void verifyResolverSupports() {
            try (val webServer = new MockWebServer(new ClassPathResource("sample-metadata.xml"))) {
                webServer.start();
                val resolver = getMetadataResolver();
                val service = new SamlRegisteredService();
                service.setMetadataLocation("http://localhost:%s".formatted(webServer.getPort()));
                assertTrue(resolver.supports(service));
                service.setMetadataLocation("classpath:sample-sp.xml");
                assertFalse(resolver.supports(service));
                service.setMetadataLocation(MDQ_URL);
                assertFalse(resolver.supports(service));
            }
        }
This is {@link UrlResourceMetadataResolverTests}.

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