Program: 163397
Project: 163397
Buggy source:
@Test(enabled=true,dataProvider="String_Node_Str") public void writeTest(boolean quoteAllFields,char[] lineSeparator) throws Exception {
  TsvWriterSettings settings=new TsvWriterSettings();
  String[] expectedHeaders=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  settings.getFormat().setLineSeparator(lineSeparator);
  settings.setIgnoreLeadingWhitespaces(false);
  settings.setIgnoreTrailingWhitespaces(false);
  settings.setHeaders(expectedHeaders);
  ByteArrayOutputStream tsvResult=new ByteArrayOutputStream();
  TsvWriter writer=new TsvWriter(new OutputStreamWriter(tsvResult,"String_Node_Str"),settings);
  Object[][] expectedResult=new Object[][]{{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str",null,"String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,null,null,null},{null,null,null,null,null},{null,null,"String_Node_Str",null,null},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{null,"String_Node_Str",null,"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"}};
  writer.writeHeaders();
  for (int i=0; i < 4; i++) {
    writer.writeRow(expectedResult[i]);
  }
  writer.writeRow("String_Node_Str");
  for (int i=4; i < expectedResult.length; i++) {
    writer.writeRow(expectedResult[i]);
  }
  writer.close();
  String result=tsvResult.toString();
  result="String_Node_Str".replaceAll("String_Node_Str",new String(lineSeparator)) + result;
  TsvParserSettings parserSettings=new TsvParserSettings();
  parserSettings.setRowProcessor(processor);
  parserSettings.getFormat().setLineSeparator(lineSeparator);
  parserSettings.setHeaderExtractionEnabled(true);
  parserSettings.setIgnoreLeadingWhitespaces(false);
  parserSettings.setIgnoreTrailingWhitespaces(false);
  TsvParser parser=new TsvParser(parserSettings);
  parser.parse(new StringReader(result));
  try {
    assertHeadersAndValuesMatch(expectedHeaders,expectedResult);
  }
 catch (  Error e) {
    System.out.println("String_Node_Str" + result + "String_Node_Str");
    throw e;
  }
}

Fixed version (ground truth):
@Test(enabled=true,dataProvider="String_Node_Str") public void writeTest(char[] lineSeparator) throws Exception {
  TsvWriterSettings settings=new TsvWriterSettings();
  String[] expectedHeaders=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  settings.getFormat().setLineSeparator(lineSeparator);
  settings.setIgnoreLeadingWhitespaces(false);
  settings.setIgnoreTrailingWhitespaces(false);
  settings.setHeaders(expectedHeaders);
  ByteArrayOutputStream tsvResult=new ByteArrayOutputStream();
  TsvWriter writer=new TsvWriter(new OutputStreamWriter(tsvResult,"String_Node_Str"),settings);
  Object[][] expectedResult=new Object[][]{{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str",null,"String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,null,null,null},{null,null,null,null,null},{null,null,"String_Node_Str",null,null},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{null,"String_Node_Str",null,"String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"},{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"}};
  writer.writeHeaders();
  for (int i=0; i < 4; i++) {
    writer.writeRow(expectedResult[i]);
  }
  writer.writeRow("String_Node_Str");
  for (int i=4; i < expectedResult.length; i++) {
    writer.writeRow(expectedResult[i]);
  }
  writer.close();
  String result=tsvResult.toString();
  result="String_Node_Str".replaceAll("String_Node_Str",new String(lineSeparator)) + result;
  TsvParserSettings parserSettings=new TsvParserSettings();
  parserSettings.setRowProcessor(processor);
  parserSettings.getFormat().setLineSeparator(lineSeparator);
  parserSettings.setHeaderExtractionEnabled(true);
  parserSettings.setIgnoreLeadingWhitespaces(false);
  parserSettings.setIgnoreTrailingWhitespaces(false);
  TsvParser parser=new TsvParser(parserSettings);
  parser.parse(new StringReader(result));
  try {
    assertHeadersAndValuesMatch(expectedHeaders,expectedResult);
  }
 catch (  Error e) {
    System.out.println("String_Node_Str" + result + "String_Node_Str");
    throw e;
  }
}