@Test
public void testGetServiceProperties() {

    JedisCluster mockJedisClient = mock(JedisCluster.class);
    CacheRedisClient mockedCachedRedisClient = mock(CacheRedisClient.class);
    when(mockedCachedRedisClient.getJedisClusterClient()).thenReturn(mockJedisClient);
    RedisCacheService redisCacheService = new RedisCacheService(config, mockedCachedRedisClient);
    Properties props = redisCacheService.getServiceProperties();
    Enumeration < ? > enumeration = props.propertyNames();
    List<String> namesList = Lists.newArrayList();
    while (enumeration.hasMoreElements()) {
        namesList.add((String) enumeration.nextElement());
    }
    String name1 = "service.property.cache.redis.cache.expiry.in.sec";
    assertTrue("propname [" + name1 + "] not found in " + namesList,
               namesList.contains(name1));
    name1 = "service.property.cache.redis.cluster";
    assertTrue("propname [" + name1 + "] not found in " + namesList,
               namesList.contains(name1));
    name1 = "service.property.cache.redis.server.max.connections";
    assertTrue("propname [" + name1 + "] not found in " + namesList,
               namesList.contains(name1));
}