@Test
public void testDispose() throws IOException {

    JedisCluster mockJedisClient = mock(JedisCluster.class);
    CacheRedisClient mockedCachedRedisClient = mock(CacheRedisClient.class);
    when(mockedCachedRedisClient.getJedisClusterClient()).thenReturn(mockJedisClient);
    RedisCacheService redisCacheService = new RedisCacheService(config, mockedCachedRedisClient);
    redisCacheService.dispose();
    verify(mockJedisClient, times(1)).close();
}