@Test
        void verifyAccessTokenIdEncodingAsJwtWithServiceKeysSigningOnly() throws Throwable {
            val accessToken = getAccessToken();
            when(accessToken.getResponseType()).thenReturn(OAuth20ResponseTypes.TOKEN_IDTOKEN);
            val registeredService = getRegisteredServiceForJwtAccessTokenWithKeys(accessToken, true, false);
            val encoder = OAuth20JwtAccessTokenEncoder.toEncodableCipher(configurationContext, registeredService, accessToken);
            val encodedAccessToken = encoder.encode(accessToken.getId());
            assertNotNull(encodedAccessToken);
            val claims = JwtBuilder.parse(encodedAccessToken);
            assertNotNull(claims.getStringClaim(OAuth20Constants.GRANT_TYPE));
            assertNotNull(claims.getStringClaim(OAuth20Constants.RESPONSE_TYPE));
        }
This is {@link OAuth20JwtAccessTokenEncoderTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20JwtAccessTokenEncoderTests.java