@Test
public void addsLoggerToRegistryOnRetrieve() {

    final ConnectionId connectionId = connectionId();
    final ConnectionLogger logger1 = underTest.forConnection(connectionId);
    final ConnectionLogger logger2 = underTest.forConnection(connectionId);
    assertThat(logger1).isNotNull()
            .isEqualTo(logger2)
            .isSameAs(logger2);
}