@Test
public void getLogsReturnsAllLogTypes() {

    final EvictingConnectionLogger logger = builder().build();
    logNtimes(SUCCESS_CAPACITY, logger::success);
    logNtimes(FAILURE_CAPACITY, logger::failure);
    final Collection<LogEntry> logs = logger.getLogs();
    assertThat(logs)
            .hasSize(SUCCESS_CAPACITY + FAILURE_CAPACITY);
}