Program: 64270
Project: 64270
Buggy source:
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) @Test public void findAll() throws IOException {
  Invocation invocation=new Invocation("String_Node_Str");
  Operation op=xrService.getOperation(invocation.getName());
  Object result=op.invoke(xrService,invocation);
  assertNotNull("String_Node_Str",result);
  XMLMarshaller marshaller=xrService.getXMLContext().createMarshaller();
  marshaller.setAttachmentMarshaller(attachmentHandler);
  Document doc=xmlPlatform.createDocument();
  Element ec=doc.createElement("String_Node_Str");
  doc.appendChild(ec);
  for (  Object r : (Vector)result) {
    marshaller.marshal(r,ec);
  }
  Document controlDoc=xmlParser.parse(new StringReader(ATTACHED_BINARY_COLLECTION_XML));
  assertTrue("String_Node_Str" + documentToString(controlDoc) + "String_Node_Str"+ documentToString(doc),comparer.isNodeEqual(controlDoc,doc));
  Document controlWSDL=xmlParser.parse(new StringReader(WSDL));
  removeEmptyTextNodes(controlWSDL);
  Document testWSDL=xmlParser.parse(new StringReader(DBWS_WSDL_STREAM.toString()));
  removeEmptyTextNodes(testWSDL);
  assertTrue("String_Node_Str" + documentToString(controlWSDL) + "String_Node_Str"+ documentToString(testWSDL),comparer.isNodeEqual(controlWSDL,testWSDL));
  Document controlXSD=xmlParser.parse(new StringReader(XSD));
  removeEmptyTextNodes(controlXSD);
  Document testXSD=xmlParser.parse(new StringReader(DBWS_SCHEMA_STREAM.toString()));
  removeEmptyTextNodes(testXSD);
  assertTrue("String_Node_Str" + documentToString(controlXSD) + "String_Node_Str"+ documentToString(testXSD),comparer.isNodeEqual(controlXSD,testXSD));
  DataHandler dataHandler=attachmentHandler.getAttachments().get("String_Node_Str");
  ByteArrayInputStream bais=(ByteArrayInputStream)dataHandler.getInputStream();
  byte[] ref=new byte[bais.available()];
  int count=bais.read(ref);
  assertEquals("String_Node_Str",15,count);
  for (int i=0; i < count; i++) {
    assertTrue("String_Node_Str",1 == ref[i]);
  }
  dataHandler=attachmentHandler.getAttachments().get("String_Node_Str");
  bais=(ByteArrayInputStream)dataHandler.getInputStream();
  ref=new byte[bais.available()];
  count=bais.read(ref);
  assertEquals("String_Node_Str",15,count);
  for (int i=0; i < count; i++) {
    assertTrue("String_Node_Str",2 == ref[i]);
  }
  dataHandler=attachmentHandler.getAttachments().get("String_Node_Str");
  bais=(ByteArrayInputStream)dataHandler.getInputStream();
  ref=new byte[bais.available()];
  count=bais.read(ref);
  assertEquals("String_Node_Str",15,count);
  for (int i=0; i < count; i++) {
    assertTrue("String_Node_Str",3 == ref[i]);
  }
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str"}) @Test public void findAll() throws IOException {
  Invocation invocation=new Invocation("String_Node_Str");
  Operation op=xrService.getOperation(invocation.getName());
  Object result=op.invoke(xrService,invocation);
  assertNotNull("String_Node_Str",result);
  XMLMarshaller marshaller=xrService.getXMLContext().createMarshaller();
  marshaller.setAttachmentMarshaller(attachmentHandler);
  Document doc=xmlPlatform.createDocument();
  Element ec=doc.createElement("String_Node_Str");
  doc.appendChild(ec);
  for (  Object r : (Vector)result) {
    marshaller.marshal(r,ec);
  }
  Document controlDoc=xmlParser.parse(new StringReader(ATTACHED_BINARY_COLLECTION_XML));
  assertTrue("String_Node_Str" + documentToString(controlDoc) + "String_Node_Str"+ documentToString(doc),comparer.isNodeEqual(controlDoc,doc));
  Document controlWSDL=xmlParser.parse(new StringReader(WSDL));
  removeEmptyTextNodes(controlWSDL);
  Document testWSDL=xmlParser.parse(new StringReader(DBWS_WSDL_STREAM.toString()));
  removeEmptyTextNodes(testWSDL);
  assertTrue("String_Node_Str" + documentToString(controlWSDL) + "String_Node_Str"+ documentToString(testWSDL),comparer.isNodeEqual(controlWSDL,testWSDL));
  Document controlXSD=xmlParser.parse(new StringReader(XSD));
  removeEmptyTextNodes(controlXSD);
  Document testXSD=xmlParser.parse(new StringReader(DBWS_SCHEMA_STREAM.toString()));
  removeEmptyTextNodes(testXSD);
  assertTrue("String_Node_Str" + documentToString(controlXSD) + "String_Node_Str"+ documentToString(testXSD),comparer.isNodeEqual(controlXSD,testXSD));
  DataHandler dataHandler=attachmentHandler.getAttachments().get("String_Node_Str");
  ByteArrayInputStream bais=(ByteArrayInputStream)dataHandler.getInputStream();
  byte[] ref=new byte[bais.available()];
  int count=bais.read(ref);
  assertEquals("String_Node_Str",15,count);
  for (int i=0; i < count; i++) {
    assertTrue("String_Node_Str",1 == ref[i]);
  }
  dataHandler=attachmentHandler.getAttachments().get("String_Node_Str");
  bais=(ByteArrayInputStream)dataHandler.getInputStream();
  ref=new byte[bais.available()];
  count=bais.read(ref);
  assertEquals("String_Node_Str",15,count);
  for (int i=0; i < count; i++) {
    assertTrue("String_Node_Str",2 == ref[i]);
  }
  dataHandler=attachmentHandler.getAttachments().get("String_Node_Str");
  bais=(ByteArrayInputStream)dataHandler.getInputStream();
  ref=new byte[bais.available()];
  count=bais.read(ref);
  assertEquals("String_Node_Str",15,count);
  for (int i=0; i < count; i++) {
    assertTrue("String_Node_Str",3 == ref[i]);
  }
}