public void waitTableAvailable(byte[] table, long timeoutMillis)
    throws InterruptedException, IOException {
    waitFor(timeoutMillis, predicateTableAvailable(TableName.valueOf(table)));
  }
Wait until all regions in a table have been assigned
@param table         Table to wait on.
@param timeoutMillis Timeout.
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtil.java