@Test
        void verifyClaimMapOperation() throws Throwable {
            val policy = new OidcEmailScopeAttributeReleasePolicy();
            assertEquals(OidcConstants.StandardScopes.EMAIL.getScope(), policy.getScopeType());
            assertNotNull(policy.getAllowedAttributes());
            val principal = CoreAuthenticationTestUtils.getPrincipal(
                UUID.randomUUID().toString(),
                CollectionUtils.wrap("mail", List.of("cas@example.org"),
                    "mail_confirmed", List.of("cas@example.org")));

            val releasePolicyContext = RegisteredServiceAttributeReleasePolicyContext.builder()
                .registeredService(CoreAuthenticationTestUtils.getRegisteredService())
                .service(CoreAuthenticationTestUtils.getService())
                .principal(principal)
                .applicationContext(applicationContext)
                .build();
            val attrs = policy.getAttributes(releasePolicyContext);
            assertTrue(policy.getAllowedAttributes().stream().allMatch(attrs::containsKey));
            assertTrue(policy.determineRequestedAttributeDefinitions(releasePolicyContext).containsAll(policy.getAllowedAttributes()));
        }
This is {@link OidcDefaultAttributeToScopeClaimMapperTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/claims/OidcDefaultAttributeToScopeClaimMapperTests.java