private static JsonNode getAndVerifyJsonNode(JsonNode rootNode, String nodeName) {
    JsonNode node = rootNode.path(nodeName);
    assertNotNull(nodeName + " node should have been returned", node);
    return node;
  }
Test fetching metrics for queue sizes from Dr.Elephant's "/metrics" endpoint.
test/controllers/MetricsControllerTest.java