@Override
    public ReplicationPeerManager getReplicationPeerManager() {
      return manager;
    }
All the modification method will fail once in the test and should finally succeed.
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationProcedureRetry.java