@Test @InSequence(2) public void updateHistogramField() { assertThat("Histogram is not registered correctly", registry.getHistograms(), hasKey(HISTOGRAM_NAME)); Histogram histogram = registry.getHistograms().get(HISTOGRAM_NAME); long value = Math.round(Math.random() * Long.MAX_VALUE); bean.update(value); assertThat("Histogram count is incorrect", histogram.getCount(), is(equalTo(1L))); assertThat("Histogram size is incorrect", histogram.getSnapshot().size(), is(equalTo(1))); assertThat("Histogram min value is incorrect", histogram.getSnapshot().getMin(), is(equalTo(value))); assertThat("Histogram max value is incorrect", histogram.getSnapshot().getMax(), is(equalTo(value))); }
public void update(long n) { histogram.update(n); }
HistogramFieldBean { public void update(long n) { histogram.update(n); } }
HistogramFieldBean { public void update(long n) { histogram.update(n); }  }
HistogramFieldBean { public void update(long n) { histogram.update(n); }  void update(long n); }
HistogramFieldBean { public void update(long n) { histogram.update(n); }  void update(long n);  }