@Test
void licenseInformationIsAdded() {

    Artifact myArtifact = new ArtifactTestHarness.Builder()
            .setNPM("@angular/isTrue", "23_0_3")
            .setDeclared("MIT")
            .build();
    Component component = toComponent(myArtifact);
    assertThat(component.getPurl()).isEqualTo("pkg:npm/%40angular%2Fistrue@23_0_3");
    assertThat(component.getName()).isEqualTo("@angular/istrue");
    assertThat(component.getVersion()).isEqualTo("23_0_3");
    assertThat(component.getLicenseChoice().getLicenses())
            .hasSize(1)
            .extracting("id").containsExactly("MIT");
}