YamlFileFinder { public List<URL> getSubscriptionsDescriptorsPaths() throws IOException { return findOnClasspath(SUBSCRIPTIONS_FILE_NAME); }  List<URL> getSubscriptionsDescriptorsPaths(); List<URL> getEventSourcesPaths();  }
@Test public void shouldFindAllSubscriptionDescriptorsOnTheClasspathWhichHaveTheCorrectName() throws Exception { final List<URL> urls = yamlFileFinder.getSubscriptionsDescriptorsPaths(); assertThat(urls.size(), is(1)); assertThat(urls.get(0).toString(), endsWith("/yaml/subscriptions-descriptor.yaml")); }
@Test public void shouldLogFoundResources() throws Exception { yamlFileFinder.getSubscriptionsDescriptorsPaths(); verify(logger).debug("Found 1 resources on the classpath for yaml/subscriptions-descriptor.yaml"); }