@Test
public void classPathExample() throws IOException {

  final Path firstModuleDir = createDirectoryWithAFile("first", "module.yaml");
  final Path secondModuleDir = createDirectoryWithAFile("second", "module.yaml");
  ClassLoader urlClassLoader = urlClassLoader(firstModuleDir, secondModuleDir);
  try (SetContextClassLoader ignored = new SetContextClassLoader(urlClassLoader)) {
    Iterable<URL> foundUrls = ResourceLocator.findNamedResources("classpath:module.yaml");
    assertThat(
        foundUrls,
        contains(
            url(firstModuleDir.resolve("module.yaml")),
            url(secondModuleDir.resolve("module.yaml"))));
  }
}