@Test
public void printCollectionOfSparseReleasesTest() {

    final SW360SparseRelease sparseRelease = SW360TestUtils.mkSW3SparseRelease("test");
    final Set<SW360SparseRelease> sparseReleases = Collections.singleton(sparseRelease);
    final String[][] printedReleases = ReporterUtils.printCollectionOfSparseReleases(sparseReleases);
    assertThat(printedReleases.length).isEqualTo(sparseReleases.size());
    assertThat(Arrays.asList(printedReleases[0]).contains(sparseRelease.getName())).isTrue();
    assertThat(Arrays.asList(printedReleases[0]).contains(sparseRelease.getVersion())).isTrue();
    assertThat(Arrays.asList(printedReleases[0]).contains(sparseRelease.getReleaseId())).isTrue();
    final String delimiter = ";";
    final String sparseReleasesHeader = ReporterUtils.sparseReleaseCsvPrintHeader(delimiter);
    assertThat(printedReleases[0].length)
            .isEqualTo(sparseReleasesHeader.split(delimiter).length);
}