@Test
public void testLoadSecondaryIndexesForTable() throws IOException {

  Map<IndexColumn, String> columnIndexes = new HashMap<IndexColumn, String>();
  DefaultIndexer indexer = new DefaultIndexer(conf);
  indexer.loadSecondaryIndexesForTable(admin.getTableDescriptor(MAIN_TABLE),
    columnIndexes);
  Assert.assertEquals(1, columnIndexes.size());
  IndexColumn indexColumn = new IndexColumn(MAIN_TABLE,
      INDEX_FAMILY, INDEX_QUALIFIER);
  Assert.assertTrue(columnIndexes.containsKey(indexColumn));
  Assert.assertEquals(Bytes.toString(INDEX_TABLE), columnIndexes.get(indexColumn));
}