@Test
    void verifyAuthenticationFailsWithNoToken() {
        val accessToken = getAccessToken();
        val encodedAccessToken = OAuth20JwtAccessTokenEncoder.toEncodableCipher(configurationContext, serviceJwtAccessToken,
            accessToken, accessToken.getService(), false).encode(accessToken.getId());
        val credentials = new TokenCredentials(encodedAccessToken);
        val request = new MockHttpServletRequest();
        val ctx = new JEEContext(request, new MockHttpServletResponse());
        assertThrows(InvalidTicketException.class,
            () -> oauthAccessTokenAuthenticator.validate(new CallContext(ctx, new JEESessionStore()), credentials));
    }
This is {@link OAuth20AccessTokenAuthenticatorTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/authenticator/OAuth20AccessTokenAuthenticatorTests.java