protected List<HRegionLocation> splitTable(final Table t) throws IOException {
    // Split this table in two.
    Admin admin = TEST_UTIL.getAdmin();
    admin.split(t.getName());
    // Is it right closing this admin?
    admin.close();
    List<HRegionLocation> regions = waitOnSplit(t);
    assertTrue(regions.size() > 1);
    return regions;
  }
Split table into multiple regions.
@param t Table to split.
@return Map of regions to servers.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/FromClientSideBase.java