@Test
public void testArtifactWithUnknownLicense() {

    String licenseName = "Unknown license";
    License license = new License();
    license.setId(licenseName);
    
    Artifact artifact = new Artifact();
    artifact.addFact(new ConfiguredLicenseInformation(license));
    knowledgeBaseResolver.process(Collections.singletonList(artifact));
    final Collection<License> finalLicenses = ArtifactLicenseUtils.getFinalLicenses(artifact).getLicenses();
    assertThat(finalLicenses.size()).isEqualTo(1);
    assertThat(finalLicenses.stream()
            .findAny()).hasValueSatisfying(l -> {
                assertThat(l.getId()).isEqualTo(licenseName);
                assertThat(l.getCommonName()).isBlank();
                assertThat(l.getText()).isBlank();
                assertThat(l.getThreatGroup()).isNotPresent();
                assertThat(l.getClassification()).isNotPresent();
    });
}