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