@Test
    void verifyLocked() {
        assertThrows(AccountLockedException.class,
            () -> authenticationHandler.authenticate(new UsernamePasswordCredential("caslocked", "caspassword"), mock(Service.class)));
    }
This is {@link RedisAuthenticationHandlerTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-redis-authentication/src/test/java/org/apereo/cas/redis/RedisAuthenticationHandlerTests.java