@Test
    void verifyConnectionWithUsernamePasswordOverTls() throws Throwable {
        val props = new BaseRedisProperties();
        props.setHost("localhost");
        props.setPort(16669);
        props.setUsername("default");
        props.setPassword("pAssw0rd123");
        props.setKeyCertificateChainFile(new File("../../ci/tests/redis/certs/redis.crt"));
        props.setKeyFile(new File("../../ci/tests/redis/certs/redis.key"));
        props.setVerifyPeer(false);
        props.setUseSsl(true);
        val connection = LettuceRedisModulesOperations.newRedisModulesCommands(props, CasSSLContext.disabled());
        assertNotNull(connection);
        try (val con = connection.getStatefulConnection()) {
            assertTrue(con.isOpen());
        }
    }
This is {@link RedisModulesOperationsTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-redis-modules/src/test/java/org/apereo/cas/redis/modules/RedisModulesOperationsTests.java