@Test
public void withDebugLogPayload() {

    final EvictingConnectionLogger logger = builder().logHeadersAndPayload().build();
    final String textPayload = "{\"foo\":\"bar\"}";
    final ConnectionMonitor.InfoProvider info = infoProviderWithPayloadDebugLogging(textPayload);
    logger.success(info);
    final LogEntry entry = getFirstAndOnlyEntry(logger);
    LogEntryAssertions.assertThat(entry)
            .hasMessageContainingPayload(textPayload);
}