@Test
    void verifyResolverNoEntityDesc() throws Throwable {
        val mdr = mock(MetadataResolver.class);
        when(mdr.resolve(any())).thenReturn(null);
        val resolver = mock(SamlRegisteredServiceCachingMetadataResolver.class);
        when(resolver.resolve(any(SamlRegisteredService.class), any()))
            .thenReturn(CachedMetadataResolverResult.builder().metadataResolver(mdr).build());
        val service = getSamlRegisteredServiceForTestShib();
        val authnRequest = getAuthnRequestFor(service);
        assertTrue(SamlRegisteredServiceMetadataAdaptor.get(resolver, service, authnRequest).isEmpty());
    }
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