@Test
public void copiesModelFromJarWithNonSourceProjection() throws URISyntaxException {

    Model model = Model.assembler()
            .addImport(getClass().getResource("sources/jar-import.jar"))
            .addImport(getClass().getResource("notsources/d.smithy"))
            .assemble()
            .unwrap();
    MockManifest manifest = new MockManifest();
    ProjectionConfig projection = ProjectionConfig.builder().build();
    PluginContext context = PluginContext.builder()
            .fileManifest(manifest)
            .projection("foo", projection)
            .model(model)
            .originalModel(model)
            .sources(ListUtils.of(Paths.get(getClass().getResource("sources/jar-import.jar").toURI())))
            .build();
    new SourcesPlugin().execute(context);
    String manifestString = manifest.getFileString("manifest").get();
    // Normalize for Windows.
    manifestString = manifestString.replace("\\", "/");
    assertThat(manifestString, containsString("model.json"));
    assertThat(manifestString, not(containsString("jar-import")));
    assertThat(manifest.getFileString("model.json").get(), containsString("\"foo.baz#A\""));
    assertThat(manifest.getFileString("model.json").get(), containsString("\"foo.baz#B\""));
    assertThat(manifest.getFileString("model.json").get(), containsString("\"foo.baz#C\""));
}