@Test
    void verifyOperationWithJwt() throws Throwable {
        val registeredService = getRegisteredService("example1", "secret", new LinkedHashSet<>());
        registeredService.setJwtAccessToken(true);
        servicesManager.save(registeredService);

        val mv = generateAccessTokenResponseAndGetModelAndView(registeredService);
        val at = mv.getModel().get(OAuth20Constants.ACCESS_TOKEN).toString();
        val token = tokenManagementEndpoint.getToken(at);
        assertNotNull(token);
        assertFalse(tokenManagementEndpoint.getTokens().isEmpty());
        tokenManagementEndpoint.deleteToken(token.getId());
    }
This is {@link OAuth20TokenManagementEndpointTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/web/mgmt/OAuth20TokenManagementEndpointTests.java