public static int randomFreePort() {
    return portAllocator.randomFreePort();
  }
Wrapper method for {@link Waiter#waitFor(Configuration, long, long, boolean, Predicate)}.
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseCommonTestingUtility.java