Program: 13034
Project: 13034
Buggy source:
/** 
 * Tests adding a wsdl document.
 * @throws Exception
 */
@Test public void testWsdlDocumentCreate() throws Exception {
  String artifactFileName="String_Node_Str";
  InputStream contentStream=this.getClass().getResourceAsStream("String_Node_Str" + artifactFileName);
  String uuid=null;
  try {
    ClientRequest request=new ClientRequest(generateURL("String_Node_Str"));
    request.header("String_Node_Str",artifactFileName);
    request.body("String_Node_Str",contentStream);
    ClientResponse<Entry> response=request.post(Entry.class);
    Entry entry=response.getEntity();
    Assert.assertEquals(artifactFileName,entry.getTitle());
    BaseArtifactType arty=SrampAtomUtils.unwrapSrampArtifact(entry);
    Assert.assertTrue(arty instanceof WsdlDocument);
    WsdlDocument doc=(WsdlDocument)arty;
    Assert.assertEquals(artifactFileName,doc.getName());
    Assert.assertEquals(Long.valueOf(1642),doc.getContentSize());
    Assert.assertEquals("String_Node_Str",doc.getContentType());
    uuid=doc.getUuid();
  }
  finally {
    IOUtils.closeQuietly(contentStream);
  }
  ClientRequest request=new ClientRequest(generateURL("String_Node_Str" + uuid));
  ClientResponse<Entry> response=request.get(Entry.class);
  Entry entry=response.getEntity();
  BaseArtifactType arty=SrampAtomUtils.unwrapSrampArtifact(entry);
  Assert.assertNotNull(arty);
  Assert.assertTrue(arty instanceof WsdlDocument);
  WsdlDocument wsdlDoc=(WsdlDocument)arty;
  Assert.assertEquals(Long.valueOf(1642),wsdlDoc.getContentSize());
  Assert.assertEquals("String_Node_Str",wsdlDoc.getName());
}

Fixed version (ground truth):
/** 
 * Tests adding a wsdl document.
 * @throws Exception
 */
@Test public void testWsdlDocumentCreate() throws Exception {
  String artifactFileName="String_Node_Str";
  InputStream contentStream=this.getClass().getResourceAsStream("String_Node_Str" + artifactFileName);
  String uuid=null;
  try {
    ClientRequest request=new ClientRequest(generateURL("String_Node_Str"));
    request.header("String_Node_Str",artifactFileName);
    request.body("String_Node_Str",contentStream);
    ClientResponse<Entry> response=request.post(Entry.class);
    Entry entry=response.getEntity();
    Assert.assertEquals(artifactFileName,entry.getTitle());
    BaseArtifactType arty=SrampAtomUtils.unwrapSrampArtifact(entry);
    Assert.assertTrue(arty instanceof WsdlDocument);
    WsdlDocument doc=(WsdlDocument)arty;
    Assert.assertEquals(artifactFileName,doc.getName());
    Assert.assertEquals(Long.valueOf(1642),doc.getContentSize());
    Assert.assertEquals("String_Node_Str",doc.getContentType());
    uuid=doc.getUuid();
  }
  finally {
    IOUtils.closeQuietly(contentStream);
  }
  ClientRequest request=new ClientRequest(generateURL("String_Node_Str" + uuid));
  ClientResponse<Entry> response=request.get(Entry.class);
  Entry entry=response.getEntity();
  BaseArtifactType arty=SrampAtomUtils.unwrapSrampArtifact(entry);
  Assert.assertNotNull(arty);
  Assert.assertTrue(arty instanceof WsdlDocument);
  WsdlDocument wsdlDoc=(WsdlDocument)arty;
  Assert.assertEquals(Long.valueOf(1642),wsdlDoc.getContentSize());
  Assert.assertEquals("String_Node_Str",wsdlDoc.getName());
  ClientRequest frequest=new ClientRequest(generateURL("String_Node_Str"));
  ClientResponse<Feed> fresponse=frequest.get(Feed.class);
  Feed feed=fresponse.getEntity();
  Assert.assertNotNull(feed);
  Assert.assertEquals(2,feed.getEntries().size());
  String findReqMsgUuid=null;
  for (  Entry atomEntry : feed.getEntries()) {
    if ("String_Node_Str".equals(atomEntry.getTitle())) {
      findReqMsgUuid=atomEntry.getId().toString();
    }
  }
  Assert.assertNotNull(findReqMsgUuid);
}