private static void assertMetricsIntValue(JsonNode metricsNode, String metricName,
      int expectedValue) {
    JsonNode metricNameNode = getAndVerifyJsonNode(metricsNode, metricName);
    JsonNode valueNode = metricNameNode.path("value");
    assertNotNull("value node inside " +  metricName + " node should have "
        + "been returned", valueNode);
    assertEquals(expectedValue, valueNode.asInt());
  }
Test fetching metrics for queue sizes from Dr.Elephant's "/metrics" endpoint.
test/controllers/MetricsControllerTest.java