@Test
    void verifyNoGivenToken() throws Throwable {
        val registeredService = getRegisteredService(REDIRECT_URI, CLIENT_SECRET, new HashSet<>());
        servicesManager.save(registeredService);

        val mockRequest = new MockHttpServletRequest(HttpMethod.POST.name(),
            CONTEXT + OAuth20Constants.REVOCATION_URL);
        val mockResponse = new MockHttpServletResponse();
        mockRequest.setParameter(OAuth20Constants.CLIENT_ID, registeredService.getClientId());
        mockRequest.setParameter(OAuth20Constants.CLIENT_SECRET, CLIENT_SECRET);

        requiresAuthenticationInterceptor.preHandle(mockRequest, mockResponse, null);
        val mv = oAuth20RevocationController.handleRequest(mockRequest, mockResponse);
        assertEquals(HttpStatus.BAD_REQUEST.value(), mockResponse.getStatus());
        assertEquals(OAuth20Constants.INVALID_REQUEST, mv.getModel().get("error"));
    }
This class tests the {@link OAuth20RevocationEndpointController} class.

@author Julien Huon
@since 6.2.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/web/endpoints/OAuth20RevocationEndpointControllerTests.java