@Test
public void writeReleaseListToCSVFileTest() throws IOException {

    List<Artifact> artifacts = new ArrayList<>();
    artifacts.add(mkArtifact("test", false));
    artifacts.add(mkArtifact("test1", false)
            .addCoordinate(new Coordinate("pkg:maven/test/test1@1.2.3"))
            .addCoordinate(new Coordinate("pkg:p2/test/test1@1.2.3")));
    CSVArtifactMapper csvArtifactMapper = new CSVArtifactMapper(csvFile.toPath(), StandardCharsets.UTF_8, DELIMITER, csvFile.getParentFile().toPath());
    csvArtifactMapper.writeArtifactsToCsvFile(artifacts);
    assertThat(csvFile.exists()).isTrue();
    List<CSVRecord> records = parseCsvFile();
    assertThat(records.size()).isEqualTo(3);
}