// Retrieve and validate the index
Index index = null;
try {
index = hm.getIndex(tableName, indexName);
assertNotNull("Unable to fetch index", index);
index.validate();
assertEquals("Index names don't match for index: " + indexName, indexName,
index.getIndexName());
assertEquals("Table names don't match for index: " + indexName, tableName,
index.getOrigTableName());
assertEquals("Index table names didn't match for index: " + indexName, qIndexTableName,