Buggy code:
public class LexerTest { private CSVFormat formatWithEscaping ; @ Before public void setUp ( ) { } private Lexer getLexer ( final String input , final CSVFormat format ) { } @ Test public void testSurroundingSpacesAreDeleted ( ) throws IOException { } @ Test public void testSurroundingTabsAreDeleted ( ) throws IOException { } @ Test public void testIgnoreEmptyLines ( ) throws IOException { } @ Test public void testComments ( ) throws IOException { } @ Test public void testCommentsAndEmptyLines ( ) throws IOException { final String code = "1,2,3,\n" + ( ( ( ( ( ( ( ( ( ( ( ( "\n" + "\n" ) + "a,b<seq2seq4repair_space>x,c#no-comment\n" ) + "#foo\n" ) + "\n" ) + "\n" ) + "d,e,#no-comment\n" ) + "\n" ) + "\n" ) + "#<seq2seq4repair_space>penultimate<seq2seq4repair_space>comment\n" ) + "\n" ) + "\n" ) + "#<seq2seq4repair_space>Final<seq2seq4repair_space>comment\n" ) ; final CSVFormat format = DEFAULT . withCommentStart ( '#' ) . withIgnoreEmptyLines ( false ) ; <START_BUG> assertFalse ( "Should<seq2seq4repair_space>not<seq2seq4repair_space>ignore<seq2seq4repair_space>empty<seq2seq4repair_space>lines" , format . getIgnoreEmptyLines ( ) ) ; <END_BUG> final Lexer parser = getLexer ( code , format ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . TOKEN , "1" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . TOKEN , "2" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . TOKEN , "3" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . TOKEN , "a" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . TOKEN , "b<seq2seq4repair_space>x" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "c#no-comment" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . COMMENT , "foo" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . TOKEN , "d" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . TOKEN , "e" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "#no-comment" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . COMMENT , "penultimate<seq2seq4repair_space>comment" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EORECORD , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . COMMENT , "Final<seq2seq4repair_space>comment" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EOF , "" ) ) ; assertThat ( parser . nextToken ( new Token ( ) ) , TokenMatchers . matches ( Type . EOF , "" ) ) ; } @ Test public void testBackslashWithoutEscaping ( ) throws IOException { } @ Test public void testBackslashWithEscaping ( ) throws IOException { } @ Test public void testNextToken4 ( ) throws IOException { } @ Test public void testNextToken5 ( ) throws IOException { } @ Test public void testNextToken6 ( ) throws IOException { } @ Test public void testDelimiterIsWhitespace ( ) throws IOException { } @ Test public void testEscapedCR ( ) throws Exception { } @ Test public void testCR ( ) throws Exception { } @ Test public void testEscapedLF ( ) throws Exception { } @ Test public void testLF ( ) throws Exception { } @ Test public void testEscapedTab ( ) throws Exception { } @ Test public void testTab ( ) throws Exception { } @ Test public void testEscapedBackspace ( ) throws Exception { } @ Test public void testBackspace ( ) throws Exception { } @ Test public void testEscapedFF ( ) throws Exception { } @ Test public void testFF ( ) throws Exception { } @ Test public void testEscapedMySqlNullValue ( ) throws Exception { } @ Test public void testEscapedCharacter ( ) throws Exception { } @ Test public void testEscapedControlCharacter ( ) throws Exception { } @ Test public void testEscapedControlCharacter2 ( ) throws Exception { } @ Test ( expected = IOException . class ) public void testEscapingAtEOF ( ) throws Exception { } }

Fix:
assertFalse ( "Should<seq2seq4repair_space>not<seq2seq4repair_space>ignore<seq2seq4repair_space>empty<seq2seq4repair_space>lines" , format . isIgnoringEmptyLines ( ) ) ;