YamlFileFinder { public List<URL> getEventSourcesPaths() throws IOException { return findOnClasspath(EVENT_SOURCE_FILE_NAME); }  List<URL> getSubscriptionsDescriptorsPaths(); List<URL> getEventSourcesPaths();  }
@Test public void shouldFindAllEventSourcesOnTheClasspathWhichHaveTheCorrectName() throws Exception { final List<URL> urls = yamlFileFinder.getEventSourcesPaths(); assertThat(urls.size(), is(1)); assertThat(urls.get(0).toString(), endsWith("/yaml/event-sources.yaml")); }