### Question:
ConsistentHashLoadBalance extends AbstractLoadBalance { @Override protected RedisServerBean doSelect(RedisQuestBean redisQuestBean, List<RedisServerBean> ffanRedisMasterServers) { Hashing hashFunction = new MurmurHash(); ConsistentHash<RedisServerBean> consistentHash=new ConsistentHash<RedisServerBean>(hashFunction, ffanRedisMasterServers.size(), ffanRedisMasterServers); RedisServerBean ffanRedisServerBean=consistentHash.getBytes(redisQuestBean.getKey()); return ffanRedisServerBean; } ConsistentHashLoadBalance();   }### Answer:
@Test public void doSelect() { ConsistentHashLoadBalance loadBalance =new ConsistentHashLoadBalance(); RedisQuestBean redisQuestBean=new RedisQuestBean(new String(request.getArgs().get(0)), request.getArgs().get(1),true ); loadBalance.setFfanRedisServerMasterCluster(init()); RedisServerBean serverBean = loadBalance.select(redisQuestBean,null); RedisServerBean serverBean1 = loadBalance.select(redisQuestBean,null); RedisServerBean serverBean2 = loadBalance.select(redisQuestBean,null); assertNotNull(serverBean); assertNotNull(serverBean1); assertNotNull(serverBean2); assertSame(serverBean,serverBean1); assertSame(serverBean,serverBean2); assertSame(serverBean1,serverBean2); }