ParserProducer { @Produces public uk.gov.justice.subscription.EventSourcesParser eventSourcesParser() { return new uk.gov.justice.subscription.EventSourcesParser(yamlParser, getYamlFileValidator()); }  @Produces uk.gov.justice.subscription.EventSourcesParser eventSourcesParser(); @Produces SubscriptionsDescriptorParser subscriptionDescriptorsParser();  }
@Test public void shouldProduceEventSourcesParser() { final EventSourcesParser eventSourcesParser = new ParserProducer().eventSourcesParser(); assertThat(eventSourcesParser, is(instanceOf(EventSourcesParser.class))); }