@Test
public void writeSingleReleaseListToCSVFileTest() throws IOException {

    List<Artifact> oneArtifact = Collections.singletonList(mkArtifact("test:test", true)
            .addFact(new ArtifactCPE("cpeId")));
    CSVArtifactMapper csvArtifactMapper = new CSVArtifactMapper(csvFile.toPath(), StandardCharsets.UTF_8, DELIMITER, csvFile.getParentFile().toPath());
    csvArtifactMapper.writeArtifactsToCsvFile(oneArtifact);
    assertThat(csvFile.exists()).isTrue();
    List<CSVRecord> records = parseCsvFile();
    assertThat(records.size()).isEqualTo(1);
    CSVRecord csvRecord = records.get(0);
    for (String csvColumn : CSV_COLUMNS) {
        if (!csvColumn.equals("File Name")) {
            assertThat(csvRecord.get(csvColumn).isEmpty()).isFalse();
        }
    }
}