@Test
    void verifySuccessful() throws Throwable {
        val result = authenticationHandler.authenticate(new UsernamePasswordCredential("casuser", "caspassword"), mock(Service.class));
        assertNotNull(result);
        val principal = result.getPrincipal();
        assertNotNull(principal);
        assertNotNull(principal.getAttributes());
        assertTrue(principal.getAttributes().containsKey("name"));
        assertTrue(principal.getAttributes().containsKey("group"));
    }
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