@Test
public void processDownloadsSourcesAndSetsTheSourceFileFact() throws Exception {

    when(httpHelper.downloadFile(eq("https://example.com/artifact0.zip"), any()))
            .thenReturn(new File("artifact0.zip"));
    Artifact artifact0 = new Artifact();
    artifact0.addFact(new ArtifactSourceUrl("https://example.com/artifact0.zip"));
    Artifact artifact1 = new Artifact();
    Collection<Artifact> artifacts = Arrays.asList(artifact0, artifact1);
    resolver.process(artifacts);
    assertThat(artifact0.askForGet(ArtifactSourceFile.class).isPresent()).isTrue();
    assertThat(artifact0.askForGet(ArtifactSourceFile.class).get().toString()).isEqualTo("artifact0.zip");
    assertThat(artifact1.askForGet(ArtifactSourceFile.class).isPresent()).isFalse();
}