Program: 7414
Project: 7414
Buggy source:
@Test public void testListAndGet() throws Exception {
  final String appName="String_Node_Str";
  HttpResponse response=deploy(WordCountApp.class,Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE1);
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  Assert.assertEquals("String_Node_Str",getDeploymentStatus(TEST_NAMESPACE1));
  response=deploy(AppWithDataset.class,Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE2,appName);
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  Assert.assertNotNull(response.getEntity());
  response=doGet(getVersionedAPIPath("String_Node_Str",Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE1));
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  Type typeToken=new TypeToken<List<JsonObject>>(){
  }
.getType();
  List<JsonObject> apps=readResponse(response,typeToken);
  Assert.assertEquals(1,apps.size());
  response=doGet(getVersionedAPIPath("String_Node_Str",Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE1));
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  apps=readResponse(response,typeToken);
  Assert.assertEquals(1,apps.size());
  response=doGet(getVersionedAPIPath("String_Node_Str",Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE1));
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  typeToken=new TypeToken<JsonObject>(){
  }
.getType();
  JsonObject result=readResponse(response,typeToken);
  Assert.assertEquals("String_Node_Str",result.get("String_Node_Str").getAsString());
  Assert.assertEquals("String_Node_Str",result.get("String_Node_Str").getAsString());
  response=doGet(getVersionedAPIPath("String_Node_Str" + appName,Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE2));
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  typeToken=new TypeToken<JsonObject>(){
  }
.getType();
  result=readResponse(response,typeToken);
  Assert.assertEquals(appName,result.get("String_Node_Str").getAsString());
  response=doDelete(getVersionedAPIPath("String_Node_Str",Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE1));
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  response=doDelete(getVersionedAPIPath("String_Node_Str",Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE2));
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
}

Fixed version (ground truth):
@Test public void testListAndGet() throws Exception {
  final String appName="String_Node_Str";
  HttpResponse response=deploy(WordCountApp.class,Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE1);
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  Assert.assertEquals("String_Node_Str",getDeploymentStatus(TEST_NAMESPACE1));
  response=deploy(AppWithDataset.class,Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE2,appName);
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  Assert.assertNotNull(response.getEntity());
  List<JsonObject> apps=getAppList(TEST_NAMESPACE1);
  Assert.assertEquals(1,apps.size());
  apps=getAppList(TEST_NAMESPACE2);
  Assert.assertEquals(1,apps.size());
  JsonObject result=getAppDetails(TEST_NAMESPACE1,"String_Node_Str");
  Assert.assertEquals("String_Node_Str",result.get("String_Node_Str").getAsString());
  Assert.assertEquals("String_Node_Str",result.get("String_Node_Str").getAsString());
  result=getAppDetails(TEST_NAMESPACE2,appName);
  Assert.assertEquals(appName,result.get("String_Node_Str").getAsString());
  response=doDelete(getVersionedAPIPath("String_Node_Str",Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE1));
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
  response=doDelete(getVersionedAPIPath("String_Node_Str",Constants.Gateway.API_VERSION_3_TOKEN,TEST_NAMESPACE2));
  Assert.assertEquals(200,response.getStatusLine().getStatusCode());
}