Program: 93596
Project: 93596
Buggy source:
public void testGetCollectionCountAndPaging() throws Exception {
  Response resp=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging));
  HttpResponse httpResp=resp.returnResponse();
  assertNotNull(httpResp);
  HttpEntity entity=httpResp.getEntity();
  assertNotNull(entity);
  StatusLine statusLine=httpResp.getStatusLine();
  assertNotNull(statusLine);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,statusLine.getStatusCode());
  assertNotNull("String_Node_Str",entity.getContentType());
  assertEquals("String_Node_Str",Representation.HAL_JSON_MEDIA_TYPE,entity.getContentType().getValue());
  String content=EntityUtils.toString(entity);
  assertNotNull("String_Node_Str",content);
  JsonObject json=null;
  try {
    json=JsonObject.readFrom(content);
  }
 catch (  Throwable t) {
    fail("String_Node_Str");
  }
  assertNotNull("String_Node_Str",json);
  assertNotNull("String_Node_Str",json.get("String_Node_Str"));
  assertTrue("String_Node_Str",(json.get("String_Node_Str") instanceof JsonObject));
  assertNotNull("String_Node_Str",json.get("String_Node_Str"));
  assertNotNull("String_Node_Str",json.get("String_Node_Str"));
  assertNotNull("String_Node_Str",json.get("String_Node_Str"));
  assertEquals("String_Node_Str",2,json.get("String_Node_Str").asInt());
  assertEquals("String_Node_Str",10,json.get("String_Node_Str").asInt());
  assertEquals("String_Node_Str",5,json.get("String_Node_Str").asInt());
  JsonObject links=(JsonObject)json.get("String_Node_Str");
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  Response respSelf=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespSelf=respSelf.returnResponse();
  assertNotNull("String_Node_Str",httpRespSelf);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespSelf.getStatusLine().getStatusCode());
  Response respRhdb=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespRhdb=respRhdb.returnResponse();
  assertNotNull("String_Node_Str",httpRespRhdb);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespRhdb.getStatusLine().getStatusCode());
  Response respNext=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespNext=respNext.returnResponse();
  assertNotNull("String_Node_Str",httpRespNext);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespSelf.getStatusLine().getStatusCode());
  Response respPrevious=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespPrevious=respPrevious.returnResponse();
  assertNotNull("String_Node_Str",httpRespPrevious);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespSelf.getStatusLine().getStatusCode());
  Response respFirst=adminExecutor.execute(Request.Get(dbUriPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse respRespFirst=respFirst.returnResponse();
  assertNotNull("String_Node_Str",respRespFirst);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,respRespFirst.getStatusLine().getStatusCode());
  Response respLast=adminExecutor.execute(Request.Get(dbUriPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespLast=respLast.returnResponse();
  assertNotNull("String_Node_Str",httpRespLast);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespLast.getStatusLine().getStatusCode());
}

Fixed version (ground truth):
@Test public void testGetCollectionCountAndPaging() throws Exception {
  LOG.info("String_Node_Str" + docsCollectionUriCountAndPaging);
  Response resp=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging));
  HttpResponse httpResp=resp.returnResponse();
  assertNotNull(httpResp);
  HttpEntity entity=httpResp.getEntity();
  assertNotNull(entity);
  StatusLine statusLine=httpResp.getStatusLine();
  assertNotNull(statusLine);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,statusLine.getStatusCode());
  assertNotNull("String_Node_Str",entity.getContentType());
  assertEquals("String_Node_Str",Representation.HAL_JSON_MEDIA_TYPE,entity.getContentType().getValue());
  String content=EntityUtils.toString(entity);
  assertNotNull("String_Node_Str",content);
  JsonObject json=null;
  try {
    json=JsonObject.readFrom(content);
  }
 catch (  Throwable t) {
    fail("String_Node_Str");
  }
  assertNotNull("String_Node_Str",json.get("String_Node_Str"));
  assertTrue("String_Node_Str",(json.get("String_Node_Str") instanceof JsonObject));
  assertEquals("String_Node_Str",2,json.get("String_Node_Str").asInt());
  assertEquals("String_Node_Str",10,json.get("String_Node_Str").asInt());
  assertEquals("String_Node_Str",5,json.get("String_Node_Str").asInt());
  JsonObject links=(JsonObject)json.get("String_Node_Str");
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  assertNotNull("String_Node_Str",links.get("String_Node_Str"));
  Response respSelf=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespSelf=respSelf.returnResponse();
  assertNotNull("String_Node_Str",httpRespSelf);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespSelf.getStatusLine().getStatusCode());
  Response respRhdb=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespRhdb=respRhdb.returnResponse();
  assertNotNull("String_Node_Str",httpRespRhdb);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespRhdb.getStatusLine().getStatusCode());
  Response respNext=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespNext=respNext.returnResponse();
  assertNotNull("String_Node_Str",httpRespNext);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespSelf.getStatusLine().getStatusCode());
  Response respPrevious=adminExecutor.execute(Request.Get(docsCollectionUriCountAndPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespPrevious=respPrevious.returnResponse();
  assertNotNull("String_Node_Str",httpRespPrevious);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespSelf.getStatusLine().getStatusCode());
  Response respFirst=adminExecutor.execute(Request.Get(dbUriPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse respRespFirst=respFirst.returnResponse();
  assertNotNull("String_Node_Str",respRespFirst);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,respRespFirst.getStatusLine().getStatusCode());
  Response respLast=adminExecutor.execute(Request.Get(dbUriPaging.resolve(links.get("String_Node_Str").asObject().get("String_Node_Str").asString())));
  HttpResponse httpRespLast=respLast.returnResponse();
  assertNotNull("String_Node_Str",httpRespLast);
  assertEquals("String_Node_Str",HttpStatus.SC_OK,httpRespLast.getStatusLine().getStatusCode());
}