Buggy code:
public class CSVParserTest { private static final String CSV_INPUT = "a,b,c,d\n" + ( ( "<seq2seq4repair_space>a<seq2seq4repair_space>,<seq2seq4repair_space>b<seq2seq4repair_space>,<seq2seq4repair_space>1<seq2seq4repair_space>2<seq2seq4repair_space>\n" + "\"foo<seq2seq4repair_space>baar\",<seq2seq4repair_space>b,\n" ) + "<seq2seq4repair_space>\"foo\n,,\n\"\",,\n\"\"\",d,e\n" ) ; private static final String CSV_INPUT_1 = "a,b,c,d" ; private static final String CSV_INPUT_2 = "a,b,1<seq2seq4repair_space>2" ; private static final String [ ] [ ] RESULT = new String [ ] [ ] { new String [ ] { "a" , "b" , "c" , "d" } , new String [ ] { "a" , "b" , "1<seq2seq4repair_space>2" } , new String [ ] { "foo<seq2seq4repair_space>baar" , "b" , "" } , new String [ ] { "foo\n,,\n\",,\n\"" , "d" , "e" } } ; @ Test public void testBackslashEscaping ( ) throws IOException { } @ Test public void testBackslashEscaping2 ( ) throws IOException { } @ Test @ Ignore public void testBackslashEscapingOld ( ) throws IOException { } @ Test @ Ignore ( "CSV-107" ) public void testBOM ( ) throws IOException { final URL url = ClassLoader . getSystemClassLoader ( ) . getResource ( "CSVFileParser//bom.csv" ) ; <START_BUG> final CSVParser parser = CSVParser . parse ( url , null , EXCEL . withHeader ( ) ) ; <END_BUG> try { for ( final CSVRecord record : parser ) { final String string = record . get ( "Date" ) ; Assert . assertNotNull ( string ) ; } } finally { parser . close ( ) ; } } @ Test public void testBOMInputStream ( ) throws IOException { } @ Test public void testCarriageReturnEndings ( ) throws IOException { } @ Test public void testCarriageReturnLineFeedEndings ( ) throws IOException { } @ Test ( expected = NoSuchElementException . class ) public void testClose ( ) throws Exception { } @ Test public void testCSV57 ( ) throws Exception { } @ Test public void testDefaultFormat ( ) throws IOException { } @ Test public void testEmptyFile ( ) throws Exception { } @ Test public void testEmptyLineBehaviourCSV ( ) throws Exception { } @ Test public void testEmptyLineBehaviourExcel ( ) throws Exception { } @ Test public void testEndOfFileBehaviorCSV ( ) throws Exception { } @ Test public void testEndOfFileBehaviourExcel ( ) throws Exception { } @ Test public void testExcelFormat1 ( ) throws IOException { } @ Test public void testExcelFormat2 ( ) throws Exception { } @ Test public void testForEach ( ) throws Exception { } @ Test public void testGetHeaderMap ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testDuplicateHeaders ( ) throws Exception { } @ Test public void testGetLine ( ) throws IOException { } @ Test public void testGetLineNumberWithCR ( ) throws Exception { } @ Test public void testGetLineNumberWithCRLF ( ) throws Exception { } @ Test public void testGetLineNumberWithLF ( ) throws Exception { } @ Test public void testGetOneLine ( ) throws IOException { } @ Test public void testGetOneLineCustomCollection ( ) throws IOException { } @ Test public void testGetOneLineOneParser ( ) throws IOException { } @ Test public void testGetRecordNumberWithCR ( ) throws Exception { } @ Test public void testGetRecordNumberWithCRLF ( ) throws Exception { } @ Test public void testGetRecordNumberWithLF ( ) throws Exception { } @ Test public void testGetRecords ( ) throws IOException { } @ Test public void testGetRecordWithMultiLineValues ( ) throws Exception { } @ Test public void testHeader ( ) throws Exception { } @ Test public void testHeaderMissing ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testHeadersMissingException ( ) throws Exception { } @ Test public void testHeadersMissing ( ) throws Exception { } @ Test public void testHeaderComment ( ) throws Exception { } @ Test public void testIgnoreEmptyLines ( ) throws IOException { } @ Test ( expected = IllegalArgumentException . class ) public void testInvalidFormat ( ) throws Exception { } @ Test public void testIterator ( ) throws Exception { } @ Test public void testLineFeedEndings ( ) throws IOException { } @ Test public void testMappedButNotSetAsOutlook2007ContactExport ( ) throws Exception { } @ Test public void testMultipleIterators ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testNewCSVParserNullReaderFormat ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testNewCSVParserReaderNullFormat ( ) throws Exception { } @ Test public void testNoHeaderMap ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testParseFileNullFormat ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testParseNullFileFormat ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testParseNullStringFormat ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testParseNullUrlCharsetFormat ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testParserUrlNullCharsetFormat ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testParseStringNullFormat ( ) throws Exception { } @ Test ( expected = IllegalArgumentException . class ) public void testParseUrlCharsetNullFormat ( ) throws Exception { } @ Test public void testProvidedHeader ( ) throws Exception { } @ Test public void testProvidedHeaderAuto ( ) throws Exception { } @ Test public void testRoundtrip ( ) throws Exception { } @ Test public void testSkipAutoHeader ( ) throws Exception { } @ Test public void testSkipSetHeader ( ) throws Exception { } private void validateLineNumbers ( final String lineSeparator ) throws IOException { } private void validateRecordNumbers ( final String lineSeparator ) throws IOException { } }

Fix:
final CSVParser parser = CSVParser . parse ( url , Charset . forName ( "UTF-8" ) , EXCEL . withHeader ( ) ) ;