@Test
@InSequence(2)
public void updateHistogramField() {

    Histogram histogram = registry.getHistogram(histogramMID);
    assertThat("Histogram is not registered correctly", histogram, notNullValue());
    // Call the update method and assert the histogram is up-to-date
    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)));
}