@Test
        void verifyTokenWithClaims() throws Throwable {
            val request = new MockHttpServletRequest();
            val response = new MockHttpServletResponse();
            val context = new JEEContext(request, response);
            val claims = "\"userinfo\": {\"given_name\": {\"essential\": true}}";
            request.addParameter(OAuth20Constants.CLAIMS, claims);
            val result = oauthRequestParameterResolver.resolveRequestClaims(context);

            val accessToken = getAccessToken();
            when(accessToken.getClaims()).thenReturn(result);
            ticketRegistry.addTicket(accessToken);
            val data = oidcUserProfileDataCreator.createFrom(accessToken);
            assertFalse(data.isEmpty());
            assertTrue(data.containsKey(OAuth20Constants.CLAIM_SUB));
        }
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