@Test
  public void testGetReplicationPeerState() throws Exception {

    // Test disable replication peer
    hbaseAdmin.disableReplicationPeer("2");
    assertFalse(hbaseAdmin.isReplicationPeerEnabled("2"));

    // Test enable replication peer
    hbaseAdmin.enableReplicationPeer("2");
    assertTrue(hbaseAdmin.isReplicationPeerEnabled("2"));
  }
Test for HBASE-27448 Add an admin method to get replication enabled state
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationSmallTests.java