}
@Test
public void testAddCompoundIndex() {
// Create the compound index ordered as (col2, col1)
final IndexSchema indexSchema = new IndexSchema(NEW_INDEX_NAME, Lists.newArrayList(TestConstants.COLUMN2, TestConstants.COLUMN1), false);
final int column2Value = 0;
// Add data rows to index
ITUtils.insertData(proxy, ROW_COUNT, INDEX_COL_VALUE);
// Add the new index to the table
proxy.addIndex(NEW_INDEX_NAME, indexSchema.serialize());
// Perform a scan with the new index
final QueryKey key = new QueryKey(NEW_INDEX_NAME, QueryType.EXACT_KEY,
ImmutableMap.<String, ByteBuffer>of(TestConstants.COLUMN1, ITUtils.encodeValue(INDEX_COL_VALUE),