Program: 53757
Project: 53757
Buggy source:
private void verifySpan(Expected expected){
  Object obj=popSpan();
  Facade span=wrap(obj);
  if (!expected.type.isInstance(obj)) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ obj.getClass().getName()+ "String_Node_Str"+ expected+ "String_Node_Str"+ obj);
  }
  if (expected.serviceType.getCode() != span.getServiceType()) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.serviceType.getCode()+ "String_Node_Str"+ span.getServiceType()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.apiId,span.getApiId())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.apiId+ "String_Node_Str"+ span.getApiId()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.rpc,span.getRpc())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.rpc+ "String_Node_Str"+ span.getRpc()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.endPoint,span.getEndPoint())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.endPoint+ "String_Node_Str"+ span.getEndPoint()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.remoteAddr,span.getRemoteAddr())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.remoteAddr+ "String_Node_Str"+ span.getRemoteAddr()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.destinationId,span.getDestinationId())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.destinationId+ "String_Node_Str"+ span.getDestinationId()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  List<TAnnotation> actualAnnotations=span.getAnnotations();
  int len=expected.annotations.length;
  int actualLen=actualAnnotations == null ? 0 : actualAnnotations.size();
  if (actualLen != len) {
    throw new AssertionError("String_Node_Str" + len + "String_Node_Str"+ actualLen+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  for (int i=0; i < len; i++) {
    ExpectedAnnotation expect=expected.annotations[i];
    AnnotationKey expectedAnnotationKey=annotationKeyRegistryService.findAnnotationKeyByName(expect.getKeyName());
    TAnnotation actual=actualAnnotations.get(i);
    if (expectedAnnotationKey.getCode() != actual.getKey()) {
      throw new AssertionError("String_Node_Str" + i + "String_Node_Str"+ expectedAnnotationKey.getCode()+ "String_Node_Str"+ expect.getValue()+ "String_Node_Str"+ toString(actual)+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
    }
    if (expectedAnnotationKey == AnnotationKey.SQL_ID && expect instanceof ExpectedSql) {
      verifySql((ExpectedSql)expect,actual);
    }
 else {
      Object expectedValue=expect.getValue();
      if (AnnotationKey.isCachedArgsKey(expectedAnnotationKey.getCode())) {
        expectedValue=getTestTcpDataSender().getStringId(expectedValue.toString());
      }
      if (!Objects.equal(expectedValue,actual.getValue().getFieldValue())) {
        throw new AssertionError("String_Node_Str" + i + "String_Node_Str"+ expectedAnnotationKey.getCode()+ "String_Node_Str"+ expect.getValue()+ "String_Node_Str"+ toString(actual)+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
      }
    }
  }
}

Fixed version (ground truth):
private void verifySpan(Expected expected){
  Object obj=popSpan();
  if (obj == null) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str");
  }
  Facade span=wrap(obj);
  if (!expected.type.isInstance(obj)) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ obj.getClass().getName()+ "String_Node_Str"+ expected+ "String_Node_Str"+ obj);
  }
  if (expected.serviceType.getCode() != span.getServiceType()) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.serviceType.getCode()+ "String_Node_Str"+ span.getServiceType()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.apiId,span.getApiId())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.apiId+ "String_Node_Str"+ span.getApiId()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.rpc,span.getRpc())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.rpc+ "String_Node_Str"+ span.getRpc()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.endPoint,span.getEndPoint())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.endPoint+ "String_Node_Str"+ span.getEndPoint()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.remoteAddr,span.getRemoteAddr())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.remoteAddr+ "String_Node_Str"+ span.getRemoteAddr()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  if (!equals(expected.destinationId,span.getDestinationId())) {
    throw new AssertionError("String_Node_Str" + expected.type.getSimpleName() + "String_Node_Str"+ expected.destinationId+ "String_Node_Str"+ span.getDestinationId()+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  List<TAnnotation> actualAnnotations=span.getAnnotations();
  int len=expected.annotations.length;
  int actualLen=actualAnnotations == null ? 0 : actualAnnotations.size();
  if (actualLen != len) {
    throw new AssertionError("String_Node_Str" + len + "String_Node_Str"+ actualLen+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
  }
  for (int i=0; i < len; i++) {
    ExpectedAnnotation expect=expected.annotations[i];
    AnnotationKey expectedAnnotationKey=annotationKeyRegistryService.findAnnotationKeyByName(expect.getKeyName());
    TAnnotation actual=actualAnnotations.get(i);
    if (expectedAnnotationKey.getCode() != actual.getKey()) {
      throw new AssertionError("String_Node_Str" + i + "String_Node_Str"+ expectedAnnotationKey.getCode()+ "String_Node_Str"+ expect.getValue()+ "String_Node_Str"+ toString(actual)+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
    }
    if (expectedAnnotationKey == AnnotationKey.SQL_ID && expect instanceof ExpectedSql) {
      verifySql((ExpectedSql)expect,actual);
    }
 else {
      Object expectedValue=expect.getValue();
      if (AnnotationKey.isCachedArgsKey(expectedAnnotationKey.getCode())) {
        expectedValue=getTestTcpDataSender().getStringId(expectedValue.toString());
      }
      if (!Objects.equal(expectedValue,actual.getValue().getFieldValue())) {
        throw new AssertionError("String_Node_Str" + i + "String_Node_Str"+ expectedAnnotationKey.getCode()+ "String_Node_Str"+ expect.getValue()+ "String_Node_Str"+ toString(actual)+ "String_Node_Str"+ expected+ "String_Node_Str"+ span);
      }
    }
  }
}