@Test
    void verifyFailsOperation() throws Throwable {
        val serviceId = "https://token.example.org/%s".formatted(UUID.randomUUID().toString());
        val service = RegisteredServiceTestUtils.getService(serviceId);
        val credential = new TokenCredential(UUID.randomUUID().toString(), service);
        assertTrue(oauthAccessTokenAuthenticationHandler.supports(credential));
        assertThrows(AuthenticationException.class, () -> oauthAccessTokenAuthenticationHandler.authenticate(credential, service));
    }
This is {@link OAuth20AccessTokenAuthenticationHandlerTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-token-authentication/src/test/java/org/apereo/cas/token/authentication/OAuth20AccessTokenAuthenticationHandlerTests.java