KamonHistogram implements Histogram { @Override public Histogram record(final Long value) { getKamonInternalHistogram().record(value); return this; } private  KamonHistogram(final String name, final Map<String, String> tags); static Histogram newHistogram(final String name); @Override Histogram tag(final String key, final String value); @Override Histogram tags(final Map<String, String> tags); @Nullable @Override String getTag(final String key); @Override Map<String, String> getTags(); @Override boolean reset(); @Override Histogram record(final Long value); @Override Long[] getRecordedValues(); @Override String toString();  }
@Test public void record() { sut.record(4711L); final Long[] recordedValues = sut.getRecordedValues(); assertThat(recordedValues.length).isEqualTo(1); assertThat(recordedValues[0]).isCloseTo(4711L, Percentage.withPercentage(1)); }