@AfterClass
  public static void tearDown() throws IOException {
    UTIL.shutdownMiniCluster();
  }
Make sure we could start the cluster with RegionReplicaReplicationEndpoint configured.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/regionreplication/TestStartupWithLegacyRegionReplicationEndpoint.java