@Test
public void returnsTheSnapshotFromTheReservoir() {

    final Snapshot snapshot = mock(Snapshot.class);
    when(reservoir.getSnapshot()).thenReturn(snapshot);
    assertThat(histogram.getSnapshot())
            .isEqualTo(snapshot);
}