@Test
        void verifyAccessTokenIdEncodingAsJwtWithServiceKeys() {
            val accessToken = getAccessToken();
            val registeredService = getRegisteredServiceForJwtAccessTokenWithKeys(accessToken);
            val encoder = OAuth20JwtAccessTokenEncoder.toEncodableCipher(configurationContext, registeredService, accessToken);
            val encodedAccessToken = encoder.encode(accessToken.getId());
            assertNotNull(encodedAccessToken);
            val decoded = OAuth20JwtAccessTokenEncoder.toDecodableCipher(configurationContext.getAccessTokenJwtBuilder()).decode(encodedAccessToken);
            assertNotNull(decoded);
            assertEquals(accessToken.getId(), decoded);
        }
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