@Test
    void verifyConsentableAttrs() {
        val context = RegisteredServiceAttributeReleasePolicyContext.builder()
            .registeredService(CoreAuthenticationTestUtils.getRegisteredService())
            .service(CoreAuthenticationTestUtils.getService())
            .principal(CoreAuthenticationTestUtils.getPrincipal())
            .applicationContext(applicationContext)
            .build();
        chain.setMergingPolicy(PrincipalAttributesCoreProperties.MergingStrategyTypes.MULTIVALUED);
        val results = chain.getConsentableAttributes(context);
        assertTrue(results.containsKey("givenName"));
        val values = CollectionUtils.toCollection(results.get("givenName"));
        assertEquals(2, values.size());
    }
This is {@link ChainingAttributeReleasePolicyTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-authentication-attributes/src/test/java/org/apereo/cas/services/ChainingAttributeReleasePolicyTests.java