Histogram implements Metric, Sampling, Counting { public void update(int value) { update((long) value); } Histogram(Reservoir reservoir); void update(int value); void update(long value); @Override long getCount(); @Override Snapshot getSnapshot();  }
@Test public void updatesTheReservoir() throws Exception { histogram.update(1); verify(reservoir).update(1); }