@Test
public void testIndexingSpecification_PullSolrCollectionFromIndexerDefinition() throws Exception {

    IndexerDefinition indexerDef = new IndexerDefinitionBuilder()
            .name("customcollection")
            .configuration(Resources.toByteArray(Resources.getResource(getClass(), "user_indexer.xml")))
            .connectionParams(ImmutableMap.of(
                    "solr.zk", "myZkHost/solr",
                    "solr.collection", "mycollection"))
            .build();
    
    addAndWaitForIndexer(indexerDef);
    
    opts.hbaseIndexerZkHost = "localhost:" + ZK_CLIENT_PORT;
    opts.hbaseIndexerName = "customcollection";
    opts.zkHost = null;
    opts.collection = "customcollection";
    
    opts.evaluateIndexingSpecification();
    
    INDEXER_MODEL.deleteIndexerInternal("customcollection");
    
    assertEquals("myZkHost/solr", opts.zkHost);
    assertEquals("customcollection", opts.collection);
}