NodeMetricsClient { long snapshotsRetrieved() { return snapshotsRetrieved; } NodeMetricsClient(HttpClient httpClient, Node node, Clock clock); List<MetricsPacket> getMetrics(ConsumerId consumer);  }
@Test public void metrics_are_not_retrieved_until_first_request() { assertEquals(0, nodeMetricsClient.snapshotsRetrieved()); }