@Test
        void verifyOperation() throws Throwable {
            val accessToken = getAccessToken();
            ticketRegistry.addTicket(accessToken);
            val data = oidcUserProfileDataCreator.createFrom(accessToken);
            assertFalse(data.isEmpty());
            assertEquals(((AuthenticationAwareTicket) accessToken.getTicketGrantingTicket()).getAuthentication()
                .getAuthenticationDate().toEpochSecond(), (long) data.get(OidcConstants.CLAIM_AUTH_TIME));
            assertTrue(data.containsKey(OAuth20Constants.CLAIM_SUB));
            assertTrue(data.containsKey(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ID));
            assertTrue(data.containsKey(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_CLIENT_ID));
            assertTrue(data.containsKey(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ATTRIBUTES));
            assertTrue(data.containsKey(CasProtocolConstants.PARAMETER_SERVICE));

            val attrs = (Map) data.get(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ATTRIBUTES);
            assertTrue(attrs.containsKey("email"));
        }
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