Program: 55150
Project: 55150
Buggy source:
@Test public void testWriteRecPosLenient(){
  try {
    Configuration config=new Configuration();
    config.setString(RecordOutputFormat.FILE_PARAMETER_KEY,"String_Node_Str" + this.tempFile.getAbsolutePath());
    config.setString(RecordOutputFormat.FIELD_DELIMITER_PARAMETER,"String_Node_Str");
    config.setInteger(RecordOutputFormat.NUM_FIELDS_PARAMETER,2);
    config.setClass(RecordOutputFormat.FIELD_TYPE_PARAMETER_PREFIX + 0,PactString.class);
    config.setInteger(RecordOutputFormat.RECORD_POSITION_PARAMETER_PREFIX + 0,2);
    config.setClass(RecordOutputFormat.FIELD_TYPE_PARAMETER_PREFIX + 1,PactString.class);
    config.setInteger(RecordOutputFormat.RECORD_POSITION_PARAMETER_PREFIX + 1,0);
    config.setBoolean(RecordOutputFormat.LENIENT_PARSING,true);
    format.configure(config);
    try {
      format.open(0);
    }
 catch (    IOException e) {
      fail(e.getMessage());
    }
    PactRecord r=new PactRecord(2);
    try {
      r.setField(0,new PactString("String_Node_Str"));
      r.setField(1,new PactInteger(42));
      r.setField(2,new PactString("String_Node_Str"));
      format.writeRecord(r);
      r=new PactRecord();
      r.setField(0,new PactString("String_Node_Str"));
      r.setField(1,new PactInteger(13));
      format.writeRecord(r);
      format.close();
      BufferedReader dis=new BufferedReader(new FileReader(tempFile));
      assertTrue((dis.readLine() + "String_Node_Str").equals("String_Node_Str"));
      assertTrue((dis.readLine() + "String_Node_Str").equals("String_Node_Str"));
      dis.close();
    }
 catch (    IOException e) {
      fail(e.getMessage());
    }
  }
 catch (  Exception ex) {
    Assert.fail("String_Node_Str" + ex.getClass().getSimpleName() + "String_Node_Str"+ ex.getMessage());
  }
}

Fixed version (ground truth):
@Test public void testWriteRecPosLenient(){
  try {
    Configuration config=new Configuration();
    config.setString(RecordOutputFormat.FILE_PARAMETER_KEY,this.tempFile.toURI().toString());
    config.setString(RecordOutputFormat.FIELD_DELIMITER_PARAMETER,"String_Node_Str");
    config.setInteger(RecordOutputFormat.NUM_FIELDS_PARAMETER,2);
    config.setClass(RecordOutputFormat.FIELD_TYPE_PARAMETER_PREFIX + 0,PactString.class);
    config.setInteger(RecordOutputFormat.RECORD_POSITION_PARAMETER_PREFIX + 0,2);
    config.setClass(RecordOutputFormat.FIELD_TYPE_PARAMETER_PREFIX + 1,PactString.class);
    config.setInteger(RecordOutputFormat.RECORD_POSITION_PARAMETER_PREFIX + 1,0);
    config.setBoolean(RecordOutputFormat.LENIENT_PARSING,true);
    format.configure(config);
    try {
      format.open(0);
    }
 catch (    IOException e) {
      fail(e.getMessage());
    }
    PactRecord r=new PactRecord(2);
    try {
      r.setField(0,new PactString("String_Node_Str"));
      r.setField(1,new PactInteger(42));
      r.setField(2,new PactString("String_Node_Str"));
      format.writeRecord(r);
      r=new PactRecord();
      r.setField(0,new PactString("String_Node_Str"));
      r.setField(1,new PactInteger(13));
      format.writeRecord(r);
      format.close();
      BufferedReader dis=new BufferedReader(new FileReader(tempFile));
      assertTrue((dis.readLine() + "String_Node_Str").equals("String_Node_Str"));
      assertTrue((dis.readLine() + "String_Node_Str").equals("String_Node_Str"));
      dis.close();
    }
 catch (    IOException e) {
      fail(e.getMessage());
    }
  }
 catch (  Exception ex) {
    Assert.fail("String_Node_Str" + ex.getClass().getSimpleName() + "String_Node_Str"+ ex.getMessage());
  }
}