@Test
    void verifyOperation() {
        assertNotNull(throttledRequestExecutor);
        val request = new MockHttpServletRequest();
        val response = new MockHttpServletResponse();
        assertFalse(throttledRequestExecutor.throttle(request, response));
        assertTrue(response.containsHeader(BucketConsumer.HEADER_NAME_X_RATE_LIMIT_REMAINING));

        assertFalse(throttledRequestExecutor.throttle(request, response));
        assertTrue(response.containsHeader(BucketConsumer.HEADER_NAME_X_RATE_LIMIT_REMAINING));
    }
This is {@link BaseBucket4jThrottledRequestTests}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-throttle-bucket4j/src/test/java/org/apereo/cas/web/BaseBucket4jThrottledRequestTests.java