@Test
    void verifyResolver() {
        val service = getSamlRegisteredServiceForTestShib();
        val authnRequest = getAuthnRequestFor(service);
        val adaptor = SamlRegisteredServiceMetadataAdaptor.get(samlRegisteredServiceCachingMetadataResolver,
            service, authnRequest).get();
        assertNotNull(adaptor);
        assertNull(adaptor.getValidUntil());
        assertNull(adaptor.getOrganization());
        assertNull(adaptor.getSignature());
        assertNotNull(adaptor.getContactPersons());
        assertNull(adaptor.getCacheDuration());
        assertNotNull(adaptor.getKeyDescriptors());
        assertNotNull(adaptor.getExtensions());
        assertNotNull(adaptor.getSupportedProtocols());
        assertNotNull(adaptor.getSingleLogoutService());
        assertNotNull(adaptor.getAssertionConsumerServiceLocations());
        assertNull(adaptor.getAssertionConsumerServiceForPaosBinding());
        val acs = adaptor.getAssertionConsumerServiceForPostBinding();
        assertNotNull(acs);
        assertEquals(7, acs.getIndex());
        assertNotNull(adaptor.getAssertionConsumerServiceForArtifactBinding());
        assertTrue(adaptor.assertionConsumerServicesSize() > 0);
        assertFalse(adaptor.isWantAssertionsSigned());
        assertFalse(adaptor.isAuthnRequestsSigned());
        assertFalse(adaptor.isSupportedProtocol("example"));
        assertFalse(adaptor.isSupportedProtocol("example"));
        assertTrue(adaptor.getAssertionConsumerServiceLocations(SAMLConstants.SAML2_POST_BINDING_URI).size() > 1);
    }
This is {@link SamlRegisteredServiceMetadataAdaptorTests}.

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