}
}
@Test
public void testWriteToString() {
CsvTestRecord3 tr1 = new CsvTestRecord3("field content;; with \"semicolons\"\"; and quotes1", 1234567891, "f4", testDate, TestEnum.AAA, Arrays.asList("i1", "i2", "i3", "i4"));
CsvTestRecord3 tr2 = new CsvTestRecord3("field content;; with \"semicolons\"\"; and quotes2", 1234567892, "f5", testDate, TestEnum.BBB, Arrays.asList("j1", "j2", "j3"));
String[] out = CsvWriter.writeToString(tr1, tr2).split("\n");
assertEquals("\"field content;; with \"\"semicolons\"\"\"\"; and quotes1\";\"1234567891\";\"f4\";\"" + testDateFormat.format(testDate) + "\";\"" + TestEnum.AAA.name() + "\";\"i1\";\"i2\";\"i3\";\"i4\"", out[0]);
assertEquals("\"field content;; with \"\"semicolons\"\"\"\"; and quotes2\";\"1234567892\";\"f5\";\"" + testDateFormat.format(testDate) + "\";\"" + TestEnum.BBB.name() + "\";\"j1\";\"j2\";\"j3\"", out[1]);
assertEquals(2, out.length);
}