@Test
void convertingMavenArtifact() {

    Artifact myArtifact = new ArtifactTestHarness.Builder()
            .setMaven("com.example", "myArtifact", "42")
            .build();
    Component component = toComponent(myArtifact);
    assertThat(component.getPurl()).isEqualTo("pkg:maven/com.example/myArtifact@42");
    assertThat(component.getName()).isEqualTo("myArtifact");
    assertThat(component.getGroup()).isEqualTo("com.example");
    assertThat(component.getVersion()).isEqualTo("42");
    assertThat(component.getHashes()).isEmpty();
    assertThat(component.getLicenseChoice().getLicenses()).isNull();
}