}
@Test(expected = NullPointerException.class)
public void testDropIndex() {
final int keyValue = 7;
final QueryKey key = ITUtils.createKey(keyValue, QueryType.EXACT_KEY);
// Add data rows to index
ITUtils.insertData(proxy, ROW_COUNT, keyValue);
// Verify that we can get a row from the index scan
proxy.startIndexScan(key.serialize());
final Row row = Row.deserialize(proxy.getNextRow());
byte[] result = proxy.getRow(Util.UUIDToBytes(row.getUUID()));
assertNotNull(row);
assertEquals(Row.deserialize(result).getUUID(), row.getUUID());
proxy.endScan();
// Drop the index from the table
proxy.dropIndex(TestConstants.INDEX1);
// Verify that the data row is still available after the index has been removed
result = proxy.getRow(Util.UUIDToBytes(row.getUUID()));
assertEquals(Row.deserialize(result).getUUID(), row.getUUID());
// Verify that the scan is unable to execute
proxy.startIndexScan(key.serialize());
}