TracingRedisConnectionFactory implements RedisConnectionFactory { @Override public RedisClusterConnection getClusterConnection() { return new TracingRedisClusterConnection(delegate.getClusterConnection(), tracingConfiguration); } TracingRedisConnectionFactory(RedisConnectionFactory delegate,
      TracingConfiguration tracingConfiguration); @Override RedisConnection getConnection(); @Override RedisClusterConnection getClusterConnection(); @Override boolean getConvertPipelineAndTxResults(); @Override RedisSentinelConnection getSentinelConnection(); @Override DataAccessException translateExceptionIfPossible(RuntimeException e);  }
@Test public void connectionIsTracingRedisClusterConnection() { RedisClusterConnection connection = connectionFactory.getClusterConnection(); verify(delegate).getClusterConnection(); assertTrue(connection instanceof TracingRedisClusterConnection); }