@Test
public void shouldThrowExceptionWhenEventSourceYamlIsNotAvailable() throws Exception {

    try {
        final List<URL> urls = emptyList();
        eventSourcesParser.eventSourcesFrom(urls);
    } catch (final YamlFileLoadingException exception) {
        assertThat(exception.getMessage(), is("No event-sources.yaml defined on the classpath"));
    }
}