Program: 64490
Project: 64490
Buggy source:
@Test public void testService(){
  try {
    QName qname=new QName("String_Node_Str","String_Node_Str");
    Service service=Service.create(new QName("String_Node_Str","String_Node_Str"));
    service.addPort(qname,SOAPBinding.SOAP11HTTP_BINDING,"String_Node_Str" + host + "String_Node_Str"+ port+ "String_Node_Str");
    Dispatch<SOAPMessage> sourceDispatch=service.createDispatch(qname,SOAPMessage.class,Service.Mode.MESSAGE);
    SOAPMessage request=createSOAPMessage(SOAP_FINDBYPK_REQUEST);
    SOAPMessage response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    SOAPBody responseBody=response.getSOAPPart().getEnvelope().getBody();
    Document resultDoc=responseBody.extractContentAsDocument();
    Document controlDoc=xmlParser.parse(new StringReader(SOAP_FINDBYPK_RESPONSE));
    assertTrue("String_Node_Str" + documentToString(controlDoc) + "String_Node_Str"+ documentToString(resultDoc),comparer.isNodeEqual(controlDoc,resultDoc));
    request=createSOAPMessage(SOAP_FINDALL_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    responseBody=response.getSOAPPart().getEnvelope().getBody();
    resultDoc=responseBody.extractContentAsDocument();
    controlDoc=xmlParser.parse(new StringReader(SOAP_FINDALL_RESPONSE));
    assertTrue("String_Node_Str" + documentToString(controlDoc) + "String_Node_Str"+ documentToString(resultDoc),comparer.isNodeEqual(controlDoc,resultDoc));
    request=createSOAPMessage(SOAP_UPDATE_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    assertTrue(SOAP_UPDATE_RESPONSE_ELEMENTNAME + "String_Node_Str",SOAP_UPDATE_RESPONSE_ELEMENTNAME.equals(response.getSOAPBody().getFirstChild().getLocalName()));
    request=createSOAPMessage(SOAP_FINDBYPK_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    responseBody=response.getSOAPPart().getEnvelope().getBody();
    resultDoc=responseBody.extractContentAsDocument();
    controlDoc=xmlParser.parse(new StringReader(SOAP_FINDBYPK_AFTERUPDATE_RESPONSE));
    assertTrue("String_Node_Str" + documentToString(controlDoc) + "String_Node_Str"+ documentToString(resultDoc),comparer.isNodeEqual(controlDoc,resultDoc));
    request=createSOAPMessage(SOAP_CREATE_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    assertTrue(SOAP_CREATE_RESPONSE_ELEMENTNAME + "String_Node_Str",SOAP_CREATE_RESPONSE_ELEMENTNAME.equals(response.getSOAPBody().getFirstChild().getLocalName()));
    request=createSOAPMessage(SOAP_DELETE_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    assertTrue(SOAP_DELETE_RESPONSE_ELEMENTNAME + "String_Node_Str",SOAP_DELETE_RESPONSE_ELEMENTNAME.equals(response.getSOAPBody().getFirstChild().getLocalName()));
    request=createSOAPMessage(SOAP_UPDATE2_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    assertTrue(SOAP_UPDATE_RESPONSE_ELEMENTNAME + "String_Node_Str",SOAP_UPDATE_RESPONSE_ELEMENTNAME.equals(response.getSOAPBody().getFirstChild().getLocalName()));
  }
 catch (  Exception x) {
    fail("String_Node_Str" + x.getMessage());
  }
}

Fixed version (ground truth):
@Test public void testService(){
  try {
    QName qname=new QName("String_Node_Str","String_Node_Str");
    Service service=Service.create(new QName("String_Node_Str","String_Node_Str"));
    service.addPort(qname,SOAPBinding.SOAP11HTTP_BINDING,"String_Node_Str" + host + "String_Node_Str"+ port+ "String_Node_Str");
    Dispatch<SOAPMessage> sourceDispatch=service.createDispatch(qname,SOAPMessage.class,Service.Mode.MESSAGE);
    SOAPMessage request=createSOAPMessage(SOAP_FINDBYPK_REQUEST);
    SOAPMessage response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    SOAPBody responseBody=response.getSOAPPart().getEnvelope().getBody();
    Document resultDoc=responseBody.extractContentAsDocument();
    Document controlDoc=xmlParser.parse(new StringReader(SOAP_FINDBYPK_RESPONSE));
    NodeList elts=resultDoc.getDocumentElement().getElementsByTagNameNS("String_Node_Str","String_Node_Str");
    assertTrue("String_Node_Str",((elts != null && elts.getLength() > 0) && elts.getLength() == 1));
    Node testNode=elts.item(0);
    assertTrue("String_Node_Str",testNode.getLocalName().equalsIgnoreCase("String_Node_Str"));
    elts=controlDoc.getDocumentElement().getElementsByTagNameNS("String_Node_Str","String_Node_Str");
    Node ctrlNode=elts.item(0);
    assertTrue("String_Node_Str" + documentToString(ctrlNode) + "String_Node_Str"+ documentToString(testNode),comparer.isNodeEqual(ctrlNode,testNode));
    request=createSOAPMessage(SOAP_FINDALL_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    responseBody=response.getSOAPPart().getEnvelope().getBody();
    resultDoc=responseBody.extractContentAsDocument();
    controlDoc=xmlParser.parse(new StringReader(SOAP_FINDALL_RESPONSE));
    elts=resultDoc.getDocumentElement().getElementsByTagNameNS("String_Node_Str","String_Node_Str");
    assertTrue("String_Node_Str",((elts != null && elts.getLength() > 0) && elts.getLength() == 1));
    testNode=elts.item(0);
    assertTrue("String_Node_Str",testNode.getLocalName().equalsIgnoreCase("String_Node_Str"));
    elts=controlDoc.getDocumentElement().getElementsByTagNameNS("String_Node_Str","String_Node_Str");
    ctrlNode=elts.item(0);
    assertTrue("String_Node_Str" + documentToString(ctrlNode) + "String_Node_Str"+ documentToString(testNode),comparer.isNodeEqual(ctrlNode,testNode));
    request=createSOAPMessage(SOAP_UPDATE_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    assertTrue(SOAP_UPDATE_RESPONSE_ELEMENTNAME + "String_Node_Str",SOAP_UPDATE_RESPONSE_ELEMENTNAME.equals(response.getSOAPBody().getFirstChild().getLocalName()));
    request=createSOAPMessage(SOAP_FINDBYPK_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    responseBody=response.getSOAPPart().getEnvelope().getBody();
    resultDoc=responseBody.extractContentAsDocument();
    controlDoc=xmlParser.parse(new StringReader(SOAP_FINDBYPK_AFTERUPDATE_RESPONSE));
    elts=resultDoc.getDocumentElement().getElementsByTagNameNS("String_Node_Str","String_Node_Str");
    assertTrue("String_Node_Str",((elts != null && elts.getLength() > 0) && elts.getLength() == 1));
    testNode=elts.item(0);
    assertTrue("String_Node_Str",testNode.getLocalName().equalsIgnoreCase("String_Node_Str"));
    elts=controlDoc.getDocumentElement().getElementsByTagNameNS("String_Node_Str","String_Node_Str");
    ctrlNode=elts.item(0);
    assertTrue("String_Node_Str" + documentToString(ctrlNode) + "String_Node_Str"+ documentToString(testNode),comparer.isNodeEqual(ctrlNode,testNode));
    request=createSOAPMessage(SOAP_CREATE_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    assertTrue(SOAP_CREATE_RESPONSE_ELEMENTNAME + "String_Node_Str",SOAP_CREATE_RESPONSE_ELEMENTNAME.equals(response.getSOAPBody().getFirstChild().getLocalName()));
    request=createSOAPMessage(SOAP_DELETE_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    assertTrue(SOAP_DELETE_RESPONSE_ELEMENTNAME + "String_Node_Str",SOAP_DELETE_RESPONSE_ELEMENTNAME.equals(response.getSOAPBody().getFirstChild().getLocalName()));
    request=createSOAPMessage(SOAP_UPDATE2_REQUEST);
    response=sourceDispatch.invoke(request);
    assertNotNull("String_Node_Str",response);
    assertTrue(SOAP_UPDATE_RESPONSE_ELEMENTNAME + "String_Node_Str",SOAP_UPDATE_RESPONSE_ELEMENTNAME.equals(response.getSOAPBody().getFirstChild().getLocalName()));
  }
 catch (  Exception x) {
    fail("String_Node_Str" + x.getMessage());
  }
}