@Test
    void verifyKeys() throws Throwable {
        val connection = RedisObjectFactory.newRedisConnectionFactory(casProperties.getAudit().getRedis(), true,
            CasSSLContext.disabled());
        val template = RedisObjectFactory.<String, Object>newRedisTemplate(Objects.requireNonNull(connection));
        template.initialize();
        val redisKeyPrefix = "CAS_TEST:";
        val keySize = 10;
        IntStream.range(0, keySize).forEach(i -> template.boundValueOps(redisKeyPrefix + i).set("TEST"));
        try (val keys = template.scan(redisKeyPrefix + '*', 1000L)) {
            assertEquals(keySize, keys.count());
        }
    }
This is {@link RedisUtilsTests}.

@author Fireborn Z
@since 6.5.0
support/cas-server-support-redis-core/src/test/java/org/apereo/cas/redis/core/util/RedisUtilsTests.java