@Test
public void testToCsv() {

    assertEquals("a", CsvUtil.toCsvString("a"));
    assertEquals("a,b", CsvUtil.toCsvString("a", "b"));
    assertEquals("a,b,", CsvUtil.toCsvString("a", "b", ""));
    assertEquals("a,\" b \"", CsvUtil.toCsvString("a", " b "));
    assertEquals("a,b,\"jo,e\"", CsvUtil.toCsvString("a", "b", "jo,e"));
    assertEquals("a,b,\"\"\"some\"\"r\"", CsvUtil.toCsvString("a", "b", "\"some\"r"));
    assertEquals("1997,Ford,E350,\"Super, luxurious truck\"",
            CsvUtil.toCsvString("1997", "Ford", "E350", "Super, luxurious truck"));
    assertEquals("1997,Ford,E350,\"Super \"\"luxurious\"\" truck\"",
            CsvUtil.toCsvString("1997", "Ford", "E350", "Super \"luxurious\" truck"));
    assertEquals("1,,2", CsvUtil.toCsvString(Integer.valueOf(1), null, Integer.valueOf(2)));
    // FIXME
    assertEquals("\"a\nb\"", CsvUtil.toCsvString("a\nb"));
}