@Test
    void verifyEffectivePolicies() {
        val registeredService = getOidcRegisteredService(UUID.randomUUID().toString());

        val chain = new ChainingAttributeReleasePolicy();
        chain.addPolicies(new OidcCustomScopeAttributeReleasePolicy("eduPerson", List.of("uid")));
        chain.addPolicies(
            new OidcScopeFreeAttributeReleasePolicy(List.of("sys_user")),
            new OidcScopeFreeAttributeReleasePolicy(List.of("dev_user")),
            new OidcScopeFreeAttributeReleasePolicy(List.of("adm_user")));
        registeredService.setAttributeReleasePolicy(chain);
        
        val policies = oidcAttributeReleasePolicyFactory.resolvePolicies(registeredService);
        assertEquals(10, policies.size());
        assertTrue(policies.containsKey("eduPerson"));
        assertTrue(policies.containsKey(OidcConstants.StandardScopes.EMAIL.getScope()));
        assertTrue(policies.containsKey(OidcConstants.StandardScopes.PROFILE.getScope()));
        assertTrue(policies.containsKey(OidcConstants.StandardScopes.OPENID.getScope()));
        assertTrue(policies.containsKey(OidcConstants.StandardScopes.ADDRESS.getScope()));
        val count = policies.values().stream().filter(OidcScopeFreeAttributeReleasePolicy.class::isInstance).count();
        assertEquals(3, count);
    }
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