### Question:
ResolvingTaxonIndex extends NonResolvingTaxonIndex { public void setEnricher(PropertyEnricher enricher) { this.enricher = enricher; } ResolvingTaxonIndex(PropertyEnricher enricher, GraphDatabaseService graphDbService); @Override TaxonNode getOrCreateTaxon(Taxon taxon); TaxonNode indexFirstAndConnectRemaining(List<Map<String, String>> taxonMatches, Taxon origTaxon); Taxon selectPrimaryTaxon(List<Map<String, String>> taxonMatches); TaxonNode indexAndConnect(List<Map<String, String>> taxonMatches, Taxon origTaxon, Taxon primaryTaxon); void setEnricher(PropertyEnricher enricher); void setIndexResolvedTaxaOnly(boolean indexResolvedOnly); boolean isIndexResolvedOnly();  }### Answer:
@Test public void createTaxonWithExplicitRanks() throws NodeFactoryException { ((ResolvingTaxonIndex) this.taxonService).setEnricher(new PropertyEnricherSingle() { @Override public Map<String, String> enrichFirstMatch(Map<String, String> properties) throws PropertyEnricherException { return properties; } @Override public void shutdown() { } }); super.createTaxonWithExplicitRanks(); }