createIndexedHTableDescriptor(tableName, "cf", "index_name", "cf", "cq");
admin.createTable(iHtd);
MiniHBaseCluster cluster = UTIL.getHBaseCluster();
HMaster master = cluster.getMaster();
master.getAssignmentManager().getZKTable().setDisablingTable(tableName);
cluster.abortMaster(0);
cluster.startMaster();
cluster.waitOnMaster(0);
cluster.waitForActiveAndReadyMaster();
Thread.sleep(1000);
assertTrue("User table should be disabled.", admin.isTableDisabled(tableName));