CRedisService extends AbstractOuterClientService { String convertDcName(String dc) { return DcMapper.INSTANCE.getDc(dc); }  @Override int getOrder(); @Override String serviceName(); @Override void markInstanceUp(ClusterShardHostPort clusterShardHostPort); @Override boolean isInstanceUp(ClusterShardHostPort clusterShardHostPort); @Override void markInstanceDown(ClusterShardHostPort clusterShardHostPort); @Override MigrationPublishResult doMigrationPublish(String clusterName, String primaryDcName, List<InetSocketAddress> newMasters); @Override MigrationPublishResult doMigrationPublish(String clusterName, String shardName, String primaryDcName,
			InetSocketAddress newMaster); @Override ClusterInfo getClusterInfo(String clusterName); GetInstanceResult getInstance(ClusterShardHostPort clusterShardHostPort);  }
@Test public void testConvertDcName() { Assert.assertEquals("SHAJQ", ((CRedisService) OuterClientService.DEFAULT).convertDcName("ntgxh")); Assert.assertEquals("SHAJQ", ((CRedisService) OuterClientService.DEFAULT).convertDcName("NTGXH")); Assert.assertEquals("SHAOY", ((CRedisService) OuterClientService.DEFAULT).convertDcName("fat")); Assert.assertEquals("SHAOY", ((CRedisService) OuterClientService.DEFAULT).convertDcName("FAT")); Assert.assertEquals("dc", ((CRedisService) OuterClientService.DEFAULT).convertDcName("dc")); }