@Test
public void testFromCsv() {

    assertStringArray(CsvUtil.toStringArray("a"), "a");
    assertStringArray(CsvUtil.toStringArray("a,b"), "a", "b");
    assertStringArray(CsvUtil.toStringArray("a, b "), "a", " b ");
    assertStringArray(CsvUtil.toStringArray("a,\" b \""), "a", " b ");
    assertStringArray(CsvUtil.toStringArray("a,b,"), "a", "b", "");
    assertStringArray(CsvUtil.toStringArray("a,b,\"jo,e\""), "a", "b", "jo,e");
    assertStringArray(CsvUtil.toStringArray("a,b,\"\"\"some\"\"r\""), "a", "b", "\"some\"r");
    assertStringArray(CsvUtil.toStringArray("1997,Ford,E350,\"Super, luxurious truck\""), "1997", "Ford", "E350",
            "Super, luxurious truck");
    assertStringArray(CsvUtil.toStringArray("1997,Ford,E350,\"Super \"\"luxurious\"\" truck\""), "1997", "Ford",
            "E350", "Super \"luxurious\" truck");
    assertStringArray(CsvUtil.toStringArray("\"a\nb\""), "a\nb");
    assertStringArray(CsvUtil.toStringArray("a,,b"), "a", "", "b");
}