ConnectivityHeaders { static boolean isPayloadDebugLogEnabled(final Map<String, String> headers) { final String value = getDebugLogValue(headers); return ConnectivityDebugLogValues.PAYLOAD.allowedForExternalHeaderValue(value); }    }
@Test public void payloadLogNotAllowedExplicitly() { assertThat(ConnectivityHeaders.isPayloadDebugLogEnabled(headers("OFF"))).isFalse(); }
@Test public void payloadLogAllowedExplicitly() { assertThat(ConnectivityHeaders.isPayloadDebugLogEnabled(headers("PAYLOAD"))).isTrue(); }
@Test public void payloadLogAllowedImplicitly() { assertThat(ConnectivityHeaders.isPayloadDebugLogEnabled(DittoHeaders.empty())).isTrue(); assertThat(ConnectivityHeaders.isPayloadDebugLogEnabled(headers("ALL"))).isTrue(); }