@BeforeEach
    void initialize() throws Exception {
        val redis = casProperties.getAuthn().getAttributeRepository().getRedis().getFirst();
        val conn = RedisObjectFactory.newRedisConnectionFactory(redis, true, CasSSLContext.disabled());
        val template = RedisObjectFactory.newRedisTemplate(conn);
        template.initialize();
        val attr = new HashMap<String, List<Object>>();
        attr.put("name", CollectionUtils.wrapList("John", "Jon"));
        attr.put("age", CollectionUtils.wrapList("42"));
        template.opsForHash().putAll(USER_ID, attr);
    }
This is {@link RedisPersonAttributeDaoTests}.

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