@Test
    void verifyOperation() {
        val request = new MockHttpServletRequest();
        request.addParameter("username", "casuser");
        val handler = new DefaultThrottledRequestResponseHandler("username");
        val response = new MockHttpServletResponse();
        assertFalse(handler.handle(request, response));
        assertEquals(HttpStatus.SC_LOCKED, response.getStatus());
    }
This is {@link DefaultThrottledRequestResponseHandlerTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-authentication-throttle/src/test/java/org/apereo/cas/throttle/DefaultThrottledRequestResponseHandlerTests.java