@Bean
            public SamlRegisteredServiceCachingMetadataResolver defaultSamlRegisteredServiceCachingMetadataResolver() throws Exception {
                val resolver = mock(SamlRegisteredServiceCachingMetadataResolver.class);
                val resolverResult = CachedMetadataResolverResult.builder().metadataResolver(mock(MetadataResolver.class)).build();
                when(resolver.resolve(any(), any())).thenReturn(resolverResult);
                return resolver;
            }
This is {@link SamlRegisteredServiceAttributeReleasePolicyTests}.

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