Program: 163398
Project: 163398
Buggy source:
@Test(enabled=true,dataProvider="String_Node_Str") public void writeSelectedColumnOnly(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);
  settings.selectFields("String_Node_Str","String_Node_Str");
  ByteArrayOutputStream tsvResult=new ByteArrayOutputStream();
  TsvWriter writer=new TsvWriter(new OutputStreamWriter(tsvResult,"String_Node_Str"),settings);
  Object[][] input=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"},{"String_Node_Str","String_Node_Str"},{null,null},{"String_Node_Str",null},{"String_Node_Str","String_Node_Str"}};
  writer.writeHeaders();
  writer.writeRowsAndClose(input);
  Object[][] expectedResult=new Object[][]{{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,null,null,null},{null,null,"String_Node_Str",null,null},{null,null,"String_Node_Str",null,"String_Node_Str"}};
  String result=tsvResult.toString();
  RowListProcessor rowList=new RowListProcessor();
  TsvParserSettings parserSettings=new TsvParserSettings();
  parserSettings.setRowProcessor(rowList);
  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(rowList,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 writeSelectedColumnOnly(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);
  settings.selectFields("String_Node_Str","String_Node_Str");
  ByteArrayOutputStream tsvResult=new ByteArrayOutputStream();
  TsvWriter writer=new TsvWriter(new OutputStreamWriter(tsvResult,"String_Node_Str"),settings);
  Object[][] input=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"},{"String_Node_Str","String_Node_Str"},{null,null},{"String_Node_Str",null},{"String_Node_Str","String_Node_Str"}};
  writer.writeHeaders();
  writer.writeRowsAndClose(input);
  Object[][] expectedResult=new Object[][]{{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,"String_Node_Str",null,"String_Node_Str"},{null,null,null,null,null},{null,null,"String_Node_Str",null,null},{null,null,"String_Node_Str",null,"String_Node_Str"}};
  String result=tsvResult.toString();
  RowListProcessor rowList=new RowListProcessor();
  TsvParserSettings parserSettings=new TsvParserSettings();
  parserSettings.setRowProcessor(rowList);
  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(rowList,expectedHeaders,expectedResult);
  }
 catch (  Error e) {
    System.out.println("String_Node_Str" + result + "String_Node_Str");
    throw e;
  }
}