{
StringWriter strWriter = new StringWriter();
CsvWriter csvWriter = new CsvWriter(strWriter);
try
{
csvWriter.write(new ValueTuple(Arrays.asList("val1", "val2")));
csvWriter.write(new ValueTuple(Arrays.asList("val3", "val4")));
assertEquals(strWriter.toString(), "\"val1\",\"val2\"\n\"val3\",\"val4\"\n");
}
finally
{
csvWriter.close();