public void waitTableEnabled(byte[] table, long timeoutMillis)
    throws InterruptedException, IOException {
    waitTableEnabled(TableName.valueOf(table), timeoutMillis);
  }
Waits for a table to be 'enabled'. Enabled means that table is set as 'enabled' and the regions
have been all assigned.
@see #waitTableEnabled(TableName, long)
@param table         Table to wait on.
@param timeoutMillis Time to wait on it being marked enabled.
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtil.java