@Test
        void verifyOperation() throws Throwable {
            val principal = RegisteredServiceTestUtils.getPrincipal("casuser",
                CollectionUtils.wrap("email", List.of("casuser@example.org"),
                    "email-address", List.of("casuser@apereo.org")));
            val accessToken = getAccessToken(principal, UUID.randomUUID().toString());
            ticketRegistry.addTicket(accessToken);

            val registeredService = getOidcRegisteredService(accessToken.getClientId(), "https://oauth.example.org");
            servicesManager.save(registeredService);

            val data = oidcUserProfileDataCreator.createFrom(accessToken);
            val attrs = (Map) data.get(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ATTRIBUTES);
            assertFalse(attrs.containsKey("email-address"));
            assertTrue(attrs.containsKey("email"));
            assertEquals("casuser@apereo.org", CollectionUtils.firstElement(attrs.get("email")).get());
        }
This is {@link OidcUserProfileDataCreatorTests}.

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