RedisKeeperServerStateBackup extends AbstractRedisKeeperServerState { @Override public void becomeActive(Endpoint masterAddress) { logger.info("[becomeActive]{}", masterAddress); doBecomeActive(masterAddress); } RedisKeeperServerStateBackup(RedisKeeperServer redisKeeperServer);  RedisKeeperServerStateBackup(RedisKeeperServer redisKeeperServer, Endpoint masterAddress); @Override void becomeBackup(Endpoint masterAddress); @Override void becomeActive(Endpoint masterAddress); @Override void setPromotionState(PROMOTION_STATE promotionState, Object promitionInfo); @Override boolean psync(final RedisClient redisClient, final String []args); @Override KeeperState keeperState();  }
@Test public void testBackupActive(){ backup.becomeActive(new DefaultEndPoint("localhost", randomPort())); }