private static JsonNode getMetricsEndpointResponse() {
    WS.Response response = WS.url(BASE_URL + METRICS_ENDPOINT).
        get().get(RESPONSE_TIMEOUT, TimeUnit.MILLISECONDS);
    return response.asJson();
  }
Test fetching metrics for queue sizes from Dr.Elephant's "/metrics" endpoint.
test/controllers/MetricsControllerTest.java