@Test
public void testEvaluateIndexingSpecification_PullSolrZkHostFromIndexerDefinition() throws Exception {

    
    IndexerDefinition indexerDef = new IndexerDefinitionBuilder()
            .name("customsolr")
            .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 = "customsolr";
    opts.zkHost = "customhost/solr";
    opts.collection = null;
    
    opts.evaluateIndexingSpecification();
    
    INDEXER_MODEL.deleteIndexerInternal("customsolr");
    
    assertEquals("customhost/solr", opts.zkHost);
    assertEquals("mycollection", opts.collection);
}