@Test
public void registeringAHistogramTriggersANotification() {

    assertThat(registry.register("thing", histogram))
            .isEqualTo(histogram);
    verify(listener).onHistogramAdded("thing", histogram);
}