@Test
public void registeringACounterTriggersANotification() {

    assertThat(registry.register("thing", counter))
            .isEqualTo(counter);
    verify(listener).onCounterAdded("thing", counter);
}