public ServerName findMetaRSLocation() throws Exception {
    ZKWatcher zkWatcher = new ZKWatcher(TEST_UTIL.getConfiguration(), null, null);
    List<HRegionLocation> result = new ArrayList<>();
    for (String znode : zkWatcher.getMetaReplicaNodes()) {
      String path = ZNodePaths.joinZNode(zkWatcher.getZNodePaths().baseZNode, znode);
      int replicaId = zkWatcher.getZNodePaths().getMetaReplicaIdFromPath(path);
      RegionState state = MetaTableLocator.getMetaRegionState(zkWatcher, replicaId);
      result.add(new HRegionLocation(state.getRegion(), state.getServerName()));
    }
    return result.get(0).getServerName();
  }
Tests for Region Mover Load/Unload functionality with and without ack mode and also to test
exclude functionality useful for rack decommissioning
hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestRegionMover2.java