private Table[] setUpClusterTablesAndPeers(int numClusters) throws Exception {
    Table[] htables;
    startMiniClusters(numClusters);
    createTableOnClusters(table);

    htables = getHTablesOnClusters(tableName);
    // Test the replication scenarios of 0 -> 1 -> 0
    addPeer("1", 0, 1);
    addPeer("1", 1, 0);
    return htables;
  }
It tests the replication scenario involving 0 -> 1 -> 0. It does it by bulk loading a set of
HFiles to a table in each cluster, checking if it's replicated.
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestMasterReplication.java