@Test
public void artifactIsMappedToSw360ReleaseCorrectlyWithoutOverwritten() {

    Artifact artifact = TestUtils.mkArtifact("Test1", false);
    SW360Component sw360Component = new SW360Component();
    sw360Component.setName("artifactIdtest1");
    SW360Release release = ArtifactToReleaseUtils.convertToReleaseWithoutAttachments(artifact);
    assertThat(release.getClearingState()).isEqualTo(TestUtils.RELEASE_CLEARING_STATE);
    assertThat(release.getChangeStatus()).isEqualTo(TestUtils.RELEASE_CHANGESTATUS);
    assertThat(release.getDownloadurl()).isEqualTo(TestUtils.RELEASE_DOWNLOAD_URL);
    assertThat(release.getReleaseTagUrl()).isEqualTo(TestUtils.RELEASE_RELEASE_TAG_URL);
    assertThat(release.getSoftwareHeritageId()).isEqualTo(TestUtils.RELEASE_SOFTWAREHERITGAE_ID);
    new ArtifactSoftwareHeritageID.Builder(release.getSoftwareHeritageId()).build();
    assertThat(release.getCoordinates()).containsKeys("maven");
    assertThat(release.getCoordinates()).hasSize(1);
    assertThat(release.getCoordinates()).containsValue("pkg:maven/org.group.id/artifactIdTest1@" + TestUtils.RELEASE_VERSION1);
    assertThat(release.getHashes()).hasSize(1);
    assertThat(release.getHashes()).
            isEqualTo(artifact.askForAll(ArtifactFilename.class)
                    .stream()
                    .map(ArtifactFilename::getArtifactFilenameEntries)
                    .flatMap(Collection::stream)
                    .map(ArtifactFilename.ArtifactFilenameEntry::getHash)
                    .collect(Collectors.toSet()));
    assertThat(release.getOverriddenLicense()).isNull();
    assertThat(release.getObservedLicense()).isEqualTo(TestUtils.RELEASE_OBSERVED_LICENSE);
    assertThat(release.getDeclaredLicense()).isEqualTo(TestUtils.RELEASE_DECLEARED_LICENSE);
    assertThat(release.getCopyrights()).isEqualTo(TestUtils.RELEASE_COPYRIGHT);
    assertThat(release.getHomepageUrl()).isEqualTo(TestUtils.HOMEPAGE_URL);
}