@Test
public void testWriteToFile() throws IOException {

    ArrayList collection = new ArrayList<>();
    collection.add("hello");
    writer.writeToFile(collection, TEST_FILE_PATH, ARTIFACTDIR);
    lines = Files.readAllLines(path, charset);
    assertTrue(lines.contains("hello"));
    assertEquals(1, lines.size());
}