admin.createTable(htd);
admin.disableTable(tableName);
IndexedHTableDescriptor ihtd =
createIndexedHTableDescriptor(tableName, "f1", "idx1", "f1", "q1");
admin.modifyTable(Bytes.toBytes(tableName), ihtd);
List<HRegionInfo> regionsOfTable =
UTIL.getHBaseCluster().getMaster().getAssignmentManager()
.getRegionsOfTable(Bytes.toBytes(tableName + "_idx"));
while (regionsOfTable.size() != 1) {
regionsOfTable =