### Question:
EnrichmentTagApplierManager { public EnrichmentTagApplier getEnrichmentTagApplier(String enrichmentTagType) { for (EnrichmentTagApplier enrichmentTagApplier : enrichmentTagAppliers) { if (enrichmentTagApplier.handlesEnrichmentTagType(enrichmentTagType)) { return enrichmentTagApplier; } } return null; }  EnrichmentTagApplier getEnrichmentTagApplier(String enrichmentTagType); @Autowired void setEnrichmentTagAppliers(List<EnrichmentTagApplier> enrichmentTagAppliers);  }### Answer:
@Test public void getEnrichmentTagApplier_NoProperApplierFound() { String nonHandledEnrichmentTagType = ENRICHMENT_TAG_TYPE_1 + ENRICHMENT_TAG_TYPE_2 + "X"; assertNull(enrichmentTagApplierManager.getEnrichmentTagApplier(nonHandledEnrichmentTagType)); }
@Test public void getEnrichmentTagApplier_ProperApplierFound() { EnrichmentTagApplier foundApplier = enrichmentTagApplierManager.getEnrichmentTagApplier(ENRICHMENT_TAG_TYPE_2); assertTrue(foundApplier == enrichmentTagApplier2); }