### Question:
ReservoirFunctionUniform { public int calls() { return counter.get(); }  int calls();  }### Answer:
@Test public void checkReservoirFunctionCalls() { int NB_TIMER_FIELDS_IN_BEAN = 6; int NB_HISTOGRAM_FIELDS_IN_BEAN = 1; int expectedCalls = NB_TIMER_FIELDS_IN_BEAN + NB_HISTOGRAM_FIELDS_IN_BEAN; assertThat("Number of ReservoirBuilder calls differ from expected # of Timer fields", reservoirBuilder.calls(), is(expectedCalls)); }