CurrentDcSentinelHelloCollector extends DefaultSentinelHelloCollector { @Override protected String getSentinelMonitorName(RedisInstanceInfo info) { return SentinelUtil.getSentinelMonitorName(info.getClusterId(), info.getShardId(), info.getDcId()); }    }
@Test public void testGetSentinelMonitorName() { RedisInstanceInfo info = mockInstanceInfo("127.0.0.1", 6379); Assert.assertEquals(String.format("%s+%s+%s", clusterId, shardId, dcId), collector.getSentinelMonitorName(info)); }