@Test
public void testClusterMetricsXML() throws JSONException, Exception {

  WebResource r = resource();
  ClientResponse response = r.path("ws").path("v1").path("cluster")
      .path("metrics").accept("application/xml").get(ClientResponse.class);
  assertEquals(MediaType.APPLICATION_XML_TYPE, response.getType());
  String xml = response.getEntity(String.class);
  verifyClusterMetricsXML(xml);
}