Program: 50765
Project: 50765
Buggy source:
@Test public void testPurchasingResponseTimeOutOfOrder(){
  CEPEventProcessor ep=new CEPEventProcessor();
  ep.setRuleName("String_Node_Str");
  ActivityUnit e4=new ActivityUnit();
  e4.setId("String_Node_Str");
  RequestReceived me4=new RequestReceived();
  me4.setTimestamp(System.currentTimeMillis() + GAP_INTERVAL);
  me4.setMessageId("String_Node_Str");
  e4.getActivityTypes().add(me4);
  ActivityUnit e5=new ActivityUnit();
  e5.setId("String_Node_Str");
  ResponseSent me5=new ResponseSent();
  me5.setTimestamp(System.currentTimeMillis() + GAP_INTERVAL + TIME_INTERVAL);
  me5.setMessageId("String_Node_Str");
  me5.setReplyToId("String_Node_Str");
  e5.getActivityTypes().add(me5);
  try {
    ep.init();
    java.util.Properties props3=(java.util.Properties)ep.process("String_Node_Str",me5,0);
    if (props3 != null) {
      fail("String_Node_Str");
    }
    java.util.Properties props1=(java.util.Properties)ep.process("String_Node_Str",me4,0);
    if (props1 == null) {
      fail("String_Node_Str");
    }
    String reqId=(String)props1.get("String_Node_Str");
    String respId=(String)props1.get("String_Node_Str");
    if (!reqId.equals(me4.getMessageId())) {
      fail("String_Node_Str");
    }
    if (!respId.equals(me5.getMessageId())) {
      fail("String_Node_Str");
    }
    if (!props1.containsKey("String_Node_Str")) {
      fail("String_Node_Str");
    }
    long responseTime=(Long)props1.get("String_Node_Str");
    if ((responseTime - TIME_INTERVAL) > 1 || (responseTime - TIME_INTERVAL) < 0) {
      fail("String_Node_Str" + TIME_INTERVAL + "String_Node_Str"+ responseTime);
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
@Test public void testPurchasingResponseTimeOutOfOrder(){
  CEPEventProcessor ep=new CEPEventProcessor();
  ep.setRuleName("String_Node_Str");
  ActivityUnit e4=new ActivityUnit();
  e4.setId("String_Node_Str");
  RequestReceived me4=new RequestReceived();
  me4.setTimestamp(System.currentTimeMillis() + GAP_INTERVAL);
  me4.setMessageId("String_Node_Str");
  e4.getActivityTypes().add(me4);
  ActivityUnit e5=new ActivityUnit();
  e5.setId("String_Node_Str");
  ResponseSent me5=new ResponseSent();
  me5.setTimestamp(me4.getTimestamp() + TIME_INTERVAL);
  me5.setMessageId("String_Node_Str");
  me5.setReplyToId("String_Node_Str");
  e5.getActivityTypes().add(me5);
  try {
    ep.init();
    java.util.Properties props3=(java.util.Properties)ep.process("String_Node_Str",me5,0);
    if (props3 != null) {
      fail("String_Node_Str");
    }
    java.util.Properties props1=(java.util.Properties)ep.process("String_Node_Str",me4,0);
    if (props1 == null) {
      fail("String_Node_Str");
    }
    String reqId=(String)props1.get("String_Node_Str");
    String respId=(String)props1.get("String_Node_Str");
    if (!reqId.equals(me4.getMessageId())) {
      fail("String_Node_Str");
    }
    if (!respId.equals(me5.getMessageId())) {
      fail("String_Node_Str");
    }
    if (!props1.containsKey("String_Node_Str")) {
      fail("String_Node_Str");
    }
    long responseTime=(Long)props1.get("String_Node_Str");
    if (responseTime != TIME_INTERVAL) {
      fail("String_Node_Str" + TIME_INTERVAL + "String_Node_Str"+ responseTime);
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    fail("String_Node_Str" + e);
  }
}