public void testIndexOnMultipleCols() throws IOException, KeeperException, InterruptedException {
HBaseAdmin admin = UTIL.getHBaseAdmin();
ZooKeeperWatcher zkw = HBaseTestingUtility.getZooKeeperWatcher(UTIL);
Configuration conf = UTIL.getConfiguration();
String userTableName = "testSingleIndexOnMultipleCols";
IndexedHTableDescriptor ihtd = new IndexedHTableDescriptor(userTableName);
// Creating and adding the column families
HColumnDescriptor hcd1 = new HColumnDescriptor("col1");
HColumnDescriptor hcd2 = new HColumnDescriptor("col2");
HColumnDescriptor hcd3 = new HColumnDescriptor("col3");
ihtd.addFamily(hcd1);
ihtd.addFamily(hcd2);
ihtd.addFamily(hcd3);
// Create and add indices
IndexSpecification iSpec1 = new IndexSpecification("Index1");
IndexSpecification iSpec2 = new IndexSpecification("Index2");
iSpec1.addIndexColumn(hcd1, "ql1", ValueType.String, 10);
iSpec2.addIndexColumn(hcd2, "ql1", ValueType.String, 10);
iSpec2.addIndexColumn(hcd3, "ql1", ValueType.String, 10);
ihtd.addIndex(iSpec1);
ihtd.addIndex(iSpec2);
admin.createTable(ihtd);
ZKAssign.blockUntilNoRIT(zkw);
HTable table = new HTable(conf, userTableName);
Put p = new Put("row1".getBytes());