Program: 149340
Project: 149340
Buggy source:
@Test public void onCompleteEventsTriggered(){
  Client client=new PersonalDataBuilder().withCorrectlyFilledData().build();
  entityManager.persist(client);
  Form form=new FormBuilder().withCorrectlyFilledForm(client).build();
  AggregateId aggregateId=AggregateId.generate();
  RequestWasSubmitted requestWasSubmitted=new RequestWasSubmitted(form,aggregateId);
  CheckIpRequestHandler checkIpEventNotifier=null;
  DoRiskAnalysisRequestHandler riskAnalysisRequestNotifier=null;
  try {
    Method handleCheckIpMethod=CheckIpRequestHandler.class.getMethod("String_Node_Str",new Class[]{Object.class});
    Method handleRiskAnalysisMethod=DoRiskAnalysisRequestHandler.class.getMethod("String_Node_Str",new Class[]{Object.class});
    SpringEventHandler checkIpEventHandler=new SpringEventHandler(CheckIpRequest.class,checkIpRequestHandlerName,handleCheckIpMethod,applicationContext);
    SpringEventHandler riskAnalysisEventHandler=new SpringEventHandler(DoRiskAnalysisRequest.class,doRiskAnalysisRequestHandlerName,handleRiskAnalysisMethod,applicationContext);
    eventPublisher.registerEventHandler(checkIpEventHandler);
    eventPublisher.registerEventHandler(riskAnalysisEventHandler);
    checkIpEventNotifier=(CheckIpRequestHandler)applicationContext.getBean(checkIpRequestHandlerName);
    riskAnalysisRequestNotifier=(DoRiskAnalysisRequestHandler)applicationContext.getBean(doRiskAnalysisRequestHandlerName);
  }
 catch (  NoSuchMethodException ex) {
    fail(ex.getMessage());
  }
  eventPublisher.publish(requestWasSubmitted);
  Assert.assertTrue(checkIpEventNotifier.isRightEventOccurred());
  Assert.assertTrue(riskAnalysisRequestNotifier.isRightEventOccurred());
}

Fixed version (ground truth):
@Test @Transactional public void onCompleteEventsTriggered(){
  Client client=new PersonalDataBuilder().withCorrectlyFilledData().build();
  entityManager.persist(client);
  Form form=new FormBuilder().withCorrectlyFilledForm(client).build();
  AggregateId aggregateId=AggregateId.generate();
  RequestWasSubmitted requestWasSubmitted=new RequestWasSubmitted(form,aggregateId);
  CheckIpRequestHandler checkIpEventNotifier=null;
  DoRiskAnalysisRequestHandler riskAnalysisRequestNotifier=null;
  try {
    Method handleCheckIpMethod=CheckIpRequestHandler.class.getMethod("String_Node_Str",new Class[]{Object.class});
    Method handleRiskAnalysisMethod=DoRiskAnalysisRequestHandler.class.getMethod("String_Node_Str",new Class[]{Object.class});
    SpringEventHandler checkIpEventHandler=new SpringEventHandler(CheckIpRequest.class,checkIpRequestHandlerName,handleCheckIpMethod,applicationContext);
    SpringEventHandler riskAnalysisEventHandler=new SpringEventHandler(DoRiskAnalysisRequest.class,doRiskAnalysisRequestHandlerName,handleRiskAnalysisMethod,applicationContext);
    eventPublisher.registerEventHandler(checkIpEventHandler);
    eventPublisher.registerEventHandler(riskAnalysisEventHandler);
    checkIpEventNotifier=(CheckIpRequestHandler)applicationContext.getBean(checkIpRequestHandlerName);
    riskAnalysisRequestNotifier=(DoRiskAnalysisRequestHandler)applicationContext.getBean(doRiskAnalysisRequestHandlerName);
  }
 catch (  NoSuchMethodException ex) {
    fail(ex.getMessage());
  }
  eventPublisher.publish(requestWasSubmitted);
  Assert.assertTrue(checkIpEventNotifier.isRightEventOccurred());
  Assert.assertTrue(riskAnalysisRequestNotifier.isRightEventOccurred());
}