### Question:
MeteringServiceFieldResolver { public String resolveServiceFeature(CmTemplateProcessor cmTemplateProcessor) { return resolveServiceField(cmTemplateProcessor, "feature", "features", null); } MeteringServiceFieldResolver(
            @Value("${cb.cm.metering.service.field.mapper.location:definitions/cm-metering-service-field-mapping.json}")
            String meteringServiceFieldMapperLocation); String resolveServiceType(CmTemplateProcessor cmTemplateProcessor); String resolveServiceFeature(CmTemplateProcessor cmTemplateProcessor); @PostConstruct void init();  }### Answer:
@Test public void testResolveServiceFeatureForNifi() { given(cmTemplateProcessor.getAllComponents()).willReturn(createServiceComponents("NIFI")); String result = underTest.resolveServiceFeature(cmTemplateProcessor); assertEquals("NIFI", result); }
@Test public void testResolveServiceFeatureWithoutMatchingService() { given(cmTemplateProcessor.getAllComponents()).willReturn(createServiceComponents("HBASE")); String result = underTest.resolveServiceFeature(cmTemplateProcessor); assertNull(result); }