@Test
public void testParsingMoreThanOnce() throws Exception {

    String line;
    List<String> expectation;
    List<String> result;
    final CsvParser parser = new CsvParser(',', '\0', null);
    line = "1,2,3,4";
    expectation = Arrays.asList("1,2,3,4".split(","));
    result = parser.parse(line);
    Assert.assertEquals(expectation, result);
    line = "1,2,3,4,5";
    expectation = Arrays.asList("1,2,3,4,5".split(","));
    result = parser.parse(line);
    Assert.assertEquals(expectation, result);
    line = "1,2";
    expectation = Arrays.asList("1,2".split(","));
    result = parser.parse(line);
    Assert.assertEquals(expectation, result);
}