@Test
public void testLongFieldSeparator() throws Exception {

    CsvParser parser = new CsvParser(new TypeInformation[]{Types.STRING, Types.STRING, Types.STRING}, "____", '"');
    Assert.assertEquals(parser.parse("hello_____world____").f1.getField(0), "hello");
    Assert.assertEquals(parser.parse("hello_____world____").f1.getField(1), "_world");
    Assert.assertEquals(parser.parse("hello_____world____").f1.getField(2), null);
    Assert.assertEquals(parser.parse("\"hello_____world____\"").f1.getField(0), "hello_____world____");
    Assert.assertEquals(parser.parse("\"hello_____world____\"").f1.getField(1), null);
    Assert.assertEquals(parser.parse("\"hello_____world____\"").f1.getField(2), null);
}