@Test
  public void testGetLiveServers() {
    final String response =
      classRule.getTarget().path("live_servers").request(MediaType.APPLICATION_JSON_TYPE)
        .header("X-Jersey-Tracing-Accept", true).get(String.class);
    assertThat(response, allOf(startsWith("{\"data\":["), endsWith("]}")));
  }
Tests for the master api_v1 {@link ClusterMetricsResource}.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/http/TestApiV1ClusterMetricsResource.java