private MiniWaspCluster createEntityGroups(String tableName) throws InterruptedException, ZooKeeperConnectionException, IOException, KeeperException { MiniWaspCluster cluster = TEST_UTIL.getWaspCluster(); log("Waiting for active/ready master"); cluster.waitForActiveAndReadyMaster(); zkw = new ZooKeeperWatcher(TEST_UTIL.getConfiguration(), "testOpenedEntityGroupHandler", null); // Create a table with entityGroups byte[] table = Bytes.toBytes(tableName); byte[] family = Bytes.toBytes("family"); TEST_UTIL.createTable(table); // wait till the entityGroups are online log("Waiting for no more RIT"); ZKAssign.blockUntilNoRIT(zkw); return cluster; }