Program: 7611
Project: 7611
Buggy source:
/** 
 * Metadata tests through appfabric apis.
 */
@Test public void testGetMetadata() throws Exception {
  try {
    HttpResponse response=AppFabricTestsSuite.doPost("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    response=deploy(WordCountApp.class);
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    response=deploy(AppWithWorkflow.class);
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    String result=EntityUtils.toString(response.getEntity());
    Assert.assertNotNull(result);
    Assert.assertTrue(result.contains("String_Node_Str"));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    result=EntityUtils.toString(response.getEntity());
    Assert.assertNotNull(result);
    Assert.assertTrue(result.contains("String_Node_Str"));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    result=EntityUtils.toString(response.getEntity());
    Assert.assertNotNull(result);
    Assert.assertTrue(result.contains("String_Node_Str"));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    result=EntityUtils.toString(response.getEntity());
    Assert.assertNotNull(result);
    Assert.assertTrue(result.contains("String_Node_Str"));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    String s=EntityUtils.toString(response.getEntity());
    List<Map<String,String>> o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(2,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    Map<String,String> app=new Gson().fromJson(s,MAP_STRING_STRING_TYPE);
    Assert.assertEquals(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),app);
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str" + "String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(404,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(404,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(404,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(404,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertTrue(o.isEmpty());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertTrue(o.isEmpty());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertTrue(o.isEmpty());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertTrue(o.isEmpty());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    Map<String,String> map=new Gson().fromJson(s,MAP_STRING_STRING_TYPE);
    Assert.assertNotNull(map);
    Assert.assertEquals("String_Node_Str",map.get("String_Node_Str"));
    Assert.assertEquals("String_Node_Str",map.get("String_Node_Str"));
    Assert.assertNotNull(map.get("String_Node_Str"));
    DataSetSpecification spec=new Gson().fromJson(map.get("String_Node_Str"),DataSetSpecification.class);
    Assert.assertNotNull(spec);
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(3,o.size());
    Map<String,String> expectedDataSets=ImmutableMap.<String,String>builder().put("String_Node_Str",ObjectStore.class.getName()).put("String_Node_Str",ObjectStore.class.getName()).put("String_Node_Str",KeyValueTable.class.getName()).build();
    for (    Map<String,String> ds : o) {
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),expectedDataSets.containsKey(ds.get("String_Node_Str")));
      Assert.assertEquals("String_Node_Str" + ds.get("String_Node_Str"),expectedDataSets.get(ds.get("String_Node_Str")),ds.get("String_Node_Str"));
    }
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    expectedDataSets=ImmutableMap.<String,String>builder().put("String_Node_Str",KeyValueTable.class.getName()).build();
    for (    Map<String,String> ds : o) {
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),expectedDataSets.containsKey(ds.get("String_Node_Str")));
      Assert.assertEquals("String_Node_Str" + ds.get("String_Node_Str"),expectedDataSets.get(ds.get("String_Node_Str")),ds.get("String_Node_Str"));
    }
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    map=new Gson().fromJson(s,MAP_STRING_STRING_TYPE);
    Assert.assertNotNull(map);
    Assert.assertEquals("String_Node_Str",map.get("String_Node_Str"));
    Assert.assertEquals("String_Node_Str",map.get("String_Node_Str"));
    Assert.assertNotNull(map.get("String_Node_Str"));
    StreamSpecification sspec=new Gson().fromJson(map.get("String_Node_Str"),StreamSpecification.class);
    Assert.assertNotNull(sspec);
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Set<String> expectedStreams=ImmutableSet.of("String_Node_Str");
    for (    Map<String,String> stream : o) {
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),stream.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),stream.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),expectedStreams.contains(stream.get("String_Node_Str")));
    }
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(2,o.size());
    expectedStreams=ImmutableSet.of("String_Node_Str");
    for (    Map<String,String> stream : o) {
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),stream.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),stream.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),expectedStreams.contains(stream.get("String_Node_Str")));
    }
  }
  finally {
    Assert.assertEquals(200,AppFabricTestsSuite.doDelete("String_Node_Str").getStatusLine().getStatusCode());
  }
}

Fixed version (ground truth):
/** 
 * Metadata tests through appfabric apis.
 */
@Test public void testGetMetadata() throws Exception {
  try {
    HttpResponse response=AppFabricTestsSuite.doPost("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    response=deploy(WordCountApp.class);
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    response=deploy(AppWithWorkflow.class);
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    String result=EntityUtils.toString(response.getEntity());
    Assert.assertNotNull(result);
    Assert.assertTrue(result.contains("String_Node_Str"));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    result=EntityUtils.toString(response.getEntity());
    Assert.assertNotNull(result);
    Assert.assertTrue(result.contains("String_Node_Str"));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    result=EntityUtils.toString(response.getEntity());
    Assert.assertNotNull(result);
    Assert.assertTrue(result.contains("String_Node_Str"));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    result=EntityUtils.toString(response.getEntity());
    Assert.assertNotNull(result);
    Assert.assertTrue(result.contains("String_Node_Str"));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    String s=EntityUtils.toString(response.getEntity());
    List<Map<String,String>> o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(2,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    Map<String,String> app=new Gson().fromJson(s,MAP_STRING_STRING_TYPE);
    Assert.assertEquals(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),app);
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str" + "String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(404,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(404,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(404,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(404,response.getStatusLine().getStatusCode());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertTrue(o.isEmpty());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertTrue(o.isEmpty());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertTrue(o.isEmpty());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertTrue(o.isEmpty());
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Assert.assertTrue(o.contains(ImmutableMap.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    Map<String,String> map=new Gson().fromJson(s,MAP_STRING_STRING_TYPE);
    Assert.assertNotNull(map);
    Assert.assertEquals("String_Node_Str",map.get("String_Node_Str"));
    Assert.assertEquals("String_Node_Str",map.get("String_Node_Str"));
    Assert.assertNotNull(map.get("String_Node_Str"));
    DataSetSpecification spec=new Gson().fromJson(map.get("String_Node_Str"),DataSetSpecification.class);
    Assert.assertNotNull(spec);
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(3,o.size());
    Map<String,String> expectedDataSets=ImmutableMap.<String,String>builder().put("String_Node_Str",ObjectStore.class.getName()).put("String_Node_Str",ObjectStore.class.getName()).put("String_Node_Str",KeyValueTable.class.getName()).build();
    for (    Map<String,String> ds : o) {
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),expectedDataSets.containsKey(ds.get("String_Node_Str")));
      Assert.assertEquals("String_Node_Str" + ds.get("String_Node_Str"),expectedDataSets.get(ds.get("String_Node_Str")),ds.get("String_Node_Str"));
    }
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    expectedDataSets=ImmutableMap.<String,String>builder().put("String_Node_Str",KeyValueTable.class.getName()).build();
    for (    Map<String,String> ds : o) {
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),ds.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + ds.get("String_Node_Str"),expectedDataSets.containsKey(ds.get("String_Node_Str")));
      Assert.assertEquals("String_Node_Str" + ds.get("String_Node_Str"),expectedDataSets.get(ds.get("String_Node_Str")),ds.get("String_Node_Str"));
    }
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    map=new Gson().fromJson(s,MAP_STRING_STRING_TYPE);
    Assert.assertNotNull(map);
    Assert.assertEquals("String_Node_Str",map.get("String_Node_Str"));
    Assert.assertEquals("String_Node_Str",map.get("String_Node_Str"));
    Assert.assertNotNull(map.get("String_Node_Str"));
    StreamSpecification sspec=new Gson().fromJson(map.get("String_Node_Str"),StreamSpecification.class);
    Assert.assertNotNull(sspec);
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    Set<String> expectedStreams=ImmutableSet.of("String_Node_Str");
    for (    Map<String,String> stream : o) {
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),stream.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),stream.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),expectedStreams.contains(stream.get("String_Node_Str")));
    }
    response=AppFabricTestsSuite.doGet("String_Node_Str");
    Assert.assertEquals(200,response.getStatusLine().getStatusCode());
    s=EntityUtils.toString(response.getEntity());
    o=new Gson().fromJson(s,LIST_MAP_STRING_STRING_TYPE);
    Assert.assertEquals(1,o.size());
    expectedStreams=ImmutableSet.of("String_Node_Str");
    for (    Map<String,String> stream : o) {
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),stream.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),stream.containsKey("String_Node_Str"));
      Assert.assertTrue("String_Node_Str" + stream.get("String_Node_Str"),expectedStreams.contains(stream.get("String_Node_Str")));
    }
  }
  finally {
    Assert.assertEquals(200,AppFabricTestsSuite.doDelete("String_Node_Str").getStatusLine().getStatusCode());
  }
}