@Override
    @Test
    void verifyThrottle() throws Throwable {
        var success = login("casuser", "Mellon", IP_ADDRESS);
        assertEquals(HttpStatus.SC_OK, success.getStatus());

        var result = login("casuser", "bad", IP_ADDRESS);
        assertEquals(HttpStatus.SC_UNAUTHORIZED, result.getStatus());

        result = login("casuser", "bad", IP_ADDRESS);
        assertEquals(HttpStatus.SC_LOCKED, result.getStatus());

        result = login("casuser", "Mellon", IP_ADDRESS);
        assertEquals(HttpStatus.SC_LOCKED, result.getStatus());

        Thread.sleep(5000);

        result = login("casuser", "Mellon", IP_ADDRESS);
        assertEquals(HttpStatus.SC_OK, result.getStatus());
    }
Unit tests for {@link ThrottledSubmissionHandlerInterceptor}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-throttle/src/test/java/org/apereo/cas/web/support/InMemoryThrottledSubmissionThrottledWindowTests.java