@Test
        void verifyAccessTokenIdEncodingWithJwtWithNoCipher() throws Throwable {
            val accessToken = getAccessToken();
            val registeredService = getRegisteredServiceForJwtAccessTokenWithoutKeys(accessToken);
            val encodedAccessToken = OAuth20JwtAccessTokenEncoder.toEncodableCipher(configurationContext, registeredService, accessToken).encode(accessToken.getId());
            assertNotNull(encodedAccessToken);
            val claims = JwtClaims.parse(JwtBuilder.parse(encodedAccessToken).toString());
            assertEquals(6, claims.getClaimNames().size());
            assertTrue(claims.hasClaim("sub"));
            assertTrue(claims.hasClaim("iss"));
            assertTrue(claims.hasClaim("aud"));
            assertTrue(claims.hasClaim("exp"));
            assertTrue(claims.hasClaim("iat"));
            assertTrue(claims.hasClaim("jti"));
        }
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