@Test
public void testAttributes() throws Exception
{

  WebResource r = resource();
  ClientResponse response = r.path(StramWebServices.PATH + "/")
      .accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
  assertEquals(MediaType.APPLICATION_JSON_TYPE, response.getType());
  JSONObject json = response.getEntity(JSONObject.class);
  JSONObject attrs = json.getJSONObject("attributes");
  Assert.assertEquals(AutoMetricBuiltInTransport.class.getName() + ":xyz",
      attrs.getString(Context.DAGContext.METRICS_TRANSPORT.getSimpleName()));
}