private void assertNumberOfPeers(int total) throws ReplicationException {
    assertEquals(total, rp.getPeerStorage().listPeerIds().size());
  }
White box testing for replication state interfaces. Implementations should extend this class, and
initialize the interfaces properly.
hbase-replication/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationStateBasic.java