@Test
    void verifyOperation() throws Throwable {
        val response = new MockHttpServletResponse();
        val accessToken = getAccessToken();
        val data = oidcUserProfileDataCreator.createFrom(accessToken);
        val entity = oidcUserProfileViewRenderer.render(data, accessToken, response);
        assertNotNull(entity);
        assertNotNull(entity.getBody());
        val result = MAPPER.readValue(entity.getBody().toString(), Map.class);
        assertTrue(result.containsKey(OidcConstants.CLAIM_AUTH_TIME));
        assertTrue(result.containsKey(OAuth20Constants.CLAIM_SUB));
        assertTrue(result.containsKey(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ID));
        assertTrue(result.containsKey(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_CLIENT_ID));
        assertTrue(result.containsKey(CasProtocolConstants.PARAMETER_SERVICE));
        assertTrue(result.containsKey("email"));
        val values = result.get("email").toString();
        assertEquals("casuser@example.org", values);
    }
This is {@link OidcUserProfileViewRendererFlatTests}.

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