Program: 167392
Project: 167392
Buggy source:
@Override public void flowCompleted(boolean cancelled){
  StringBuilder assertFailed=new StringBuilder();
  if (expectedControlMessageCount != controlMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedControlMessageCount,controlMessageCount));
  }
  if (expectedEmptyPayloadMessageCount != emptyPayloadMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedEmptyPayloadMessageCount,emptyPayloadMessageCount));
  }
  if (expectedEntityMessageCount != entityMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedEntityMessageCount,entityMessageCount));
  }
  if (expectedTextMessageCount != textMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedTextMessageCount,textMessageCount));
  }
  if (expectedBinaryMessageCount != binaryMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedBinaryMessageCount,binaryMessageCount));
  }
  if (isNotBlank(sql)) {
    IResourceRuntime targetResource=context.getDeployedResources().get(dataSourceId);
    DataSource ds=targetResource.reference();
    JdbcTemplate template=new JdbcTemplate(ds);
    int sqlCount=template.queryForObject(sql,Integer.class);
    if (expectedSqlCount != sqlCount) {
      assertFailed.append(String.format("String_Node_Str",expectedSqlCount,sqlCount));
    }
  }
  if (assertFailed.length() > 0) {
    throw new AssertException(assertFailed.toString());
  }
}

Fixed version (ground truth):
@Override public void flowCompleted(boolean cancelled){
  StringBuilder assertFailed=new StringBuilder();
  if (expectedControlMessageCount != controlMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedControlMessageCount,controlMessageCount));
  }
  if (expectedEmptyPayloadMessageCount != emptyPayloadMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedEmptyPayloadMessageCount,emptyPayloadMessageCount));
  }
  if (expectedEntityMessageCount != entityMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedEntityMessageCount,entityMessageCount));
  }
  if (expectedTextMessageCount != textMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedTextMessageCount,textMessageCount));
  }
  if (expectedBinaryMessageCount != binaryMessageCount) {
    assertFailed.append(String.format("String_Node_Str",expectedBinaryMessageCount,binaryMessageCount));
  }
  if (expectedEntityCountPerMessage.intValue() != -1 && expectedEntityCountPerMessage.intValue() != entityCountPerMessage) {
    assertFailed.append(String.format("String_Node_Str",expectedEntityCountPerMessage.intValue(),entityCountPerMessage));
  }
  if (isNotBlank(sql)) {
    IResourceRuntime targetResource=context.getDeployedResources().get(dataSourceId);
    DataSource ds=targetResource.reference();
    JdbcTemplate template=new JdbcTemplate(ds);
    int sqlCount=template.queryForObject(sql,Integer.class);
    if (expectedSqlCount != sqlCount) {
      assertFailed.append(String.format("String_Node_Str",expectedSqlCount,sqlCount));
    }
  }
  if (assertFailed.length() > 0) {
    throw new AssertException(assertFailed.toString());
  }
}