ModelDiscovery { public static URL createSmithyJarManifestUrl(String fileOrUrl) { try { return new URL(getFilenameWithScheme(fileOrUrl) + "!/" + MANIFEST_PATH); } catch (IOException e) { throw new ModelImportException(e.getMessage(), e); } } private  ModelDiscovery(); static List<URL> findModels(); static List<URL> findModels(ClassLoader loader); static List<URL> findModels(URL jarManifestUrl); static String getSmithyModelPathFromJarUrl(URL modelUrl); static URL createSmithyJarManifestUrl(String fileOrUrl);  }
@Test public void createSmithyManifestUrlFromPath() throws IOException { assertThat(ModelDiscovery.createSmithyJarManifestUrl("/foo.jar"), equalTo(new URL("jar:file:/foo.jar!/META-INF/smithy/manifest"))); }
@Test public void createSmithyManifestUrlFromFileUrl() throws IOException { assertThat(ModelDiscovery.createSmithyJarManifestUrl("file:/foo.jar"), equalTo(new URL("jar:file:/foo.jar!/META-INF/smithy/manifest"))); }
@Test public void createSmithyManifestUrlFromJarUrl() throws IOException { assertThat(ModelDiscovery.createSmithyJarManifestUrl("jar:file:/foo.jar"), equalTo(new URL("jar:file:/foo.jar!/META-INF/smithy/manifest"))); }