Program: 92970
Project: 92970
Buggy source:
public void testGetter(){
  LttngEventContent testContent=null;
  LTTngTextTrace tmpStream=null;
  LttngEvent tmpEvent=null;
  TmfTraceContext tmpContext=null;
  tmpStream=initializeEventStream();
  tmpContext=new TmfTraceContext(0L,new LttngTimestamp(0L),0);
  tmpEvent=(LttngEvent)tmpStream.getNextEvent(tmpContext);
  testContent=prepareToTest();
  assertNotSame("String_Node_Str",null,testContent.getFields());
  assertEquals("String_Node_Str",firstEventContentFirstField,testContent.getField(0).toString());
  assertEquals("String_Node_Str",firstEventContentFirstField,testContent.getField(firstEventContentFirstFieldName).toString());
  assertNotSame("String_Node_Str",null,testContent.getRawContent());
  assertTrue("String_Node_Str",tmpEvent.getTimestamp().getValue() == testContent.getEvent().getTimestamp().getValue());
  assertEquals("String_Node_Str",firstEventContentType,testContent.getType().toString());
  tmpStream=initializeEventStream();
  tmpContext=new TmfTraceContext(0L,new LttngTimestamp(0L),0);
  tmpContext=tmpStream.seekEvent(new LttngTimestamp(timestampAfterMetadata));
  tmpEvent=(LttngEvent)tmpStream.getNextEvent(tmpContext);
  tmpEvent=(LttngEvent)tmpStream.getNextEvent(tmpContext);
  testContent=tmpEvent.getContent();
  assertTrue("String_Node_Str",tmpEvent.getTimestamp().getValue() == testContent.getEvent().getTimestamp().getValue());
  assertEquals("String_Node_Str",secondEventContentType,testContent.getType().toString());
  assertNotSame("String_Node_Str",null,testContent.getFields());
  assertEquals("String_Node_Str",secondEventContentSecondField,testContent.getField(1).toString());
  assertEquals("String_Node_Str",secondEventContentSecondField,testContent.getField(secondEventContentSecondFieldName).toString());
  assertNotSame("String_Node_Str",null,testContent.getRawContent());
}

Fixed version (ground truth):
public void testGetter(){
  LttngEventContent testContent=null;
  LTTngTextTrace tmpStream=null;
  LttngEvent tmpEvent=null;
  TmfTraceContext tmpContext=null;
  tmpStream=initializeEventStream();
  tmpContext=new TmfTraceContext(0L,new LttngTimestamp(0L),0);
  tmpEvent=(LttngEvent)tmpStream.getNextEvent(tmpContext);
  testContent=prepareToTest();
  assertNotSame("String_Node_Str",null,testContent.getFields());
  assertNotSame("String_Node_Str",null,testContent.getField(0).toString());
  assertEquals("String_Node_Str",firstEventContentFirstField,testContent.getField(firstEventContentFirstFieldName).toString());
  assertNotSame("String_Node_Str",null,testContent.getRawContent());
  assertTrue("String_Node_Str",tmpEvent.getTimestamp().getValue() == testContent.getEvent().getTimestamp().getValue());
  assertEquals("String_Node_Str",firstEventContentType,testContent.getType().toString());
  tmpStream=initializeEventStream();
  tmpContext=new TmfTraceContext(0L,new LttngTimestamp(0L),0);
  tmpContext=tmpStream.seekEvent(new LttngTimestamp(timestampAfterMetadata));
  tmpEvent=(LttngEvent)tmpStream.getNextEvent(tmpContext);
  tmpEvent=(LttngEvent)tmpStream.getNextEvent(tmpContext);
  testContent=tmpEvent.getContent();
  assertTrue("String_Node_Str",tmpEvent.getTimestamp().getValue() == testContent.getEvent().getTimestamp().getValue());
  assertEquals("String_Node_Str",secondEventContentType,testContent.getType().toString());
  assertNotSame("String_Node_Str",null,testContent.getFields());
  assertEquals("String_Node_Str",secondEventContentSecondField,testContent.getField(1).toString());
  assertEquals("String_Node_Str",secondEventContentSecondField,testContent.getField(secondEventContentSecondFieldName).toString());
  assertNotSame("String_Node_Str",null,testContent.getRawContent());
}