@Test
void convertingFileHasChecksumAndPackageUrl() {

    Artifact myArtifact = new ArtifactTestHarness.Builder()
            .addFilename("model-1.0.0-SNAPSHOT.jar", "9bb1b31831f849f34a274f608640f5da6e867571", "sha-1")
            .build();
    Component component = toComponent(myArtifact);
    assertThat(component.getHashes()).hasSize(1).extracting("value").containsExactly("9bb1b31831f849f34a274f608640f5da6e867571");
    assertThat(component.getPurl()).isEqualTo("pkg:generic/model-1.0.0-SNAPSHOT.jar?checksum=sha-1%3A9bb1b31831f849f34a274f608640f5da6e867571&download_url=file%3A%2F%2Fmodel-1.0.0-SNAPSHOT.jar");
}