@Test
    void verifyEffectivePoliciesWithChain() {
        val registeredService = getOidcRegisteredService(UUID.randomUUID().toString());
        val chain = new ChainingAttributeReleasePolicy()
            .addPolicies(new OidcCustomScopeAttributeReleasePolicy("eduPerson", List.of("uid")));
        registeredService.setAttributeReleasePolicy(chain);
        val policies = oidcAttributeReleasePolicyFactory.resolvePolicies(registeredService);
        assertTrue(policies.containsKey("eduPerson"));
        assertTrue(policies.containsKey(OidcConstants.StandardScopes.EMAIL.getScope()));
        assertTrue(policies.containsKey(OidcConstants.StandardScopes.PROFILE.getScope()));
    }
This is {@link DefaultOidcAttributeReleasePolicyFactoryTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/scopes/DefaultOidcAttributeReleasePolicyFactoryTests.java