ConnectivityHeaders { static boolean isHeadersDebugLogEnabled(final Map<String, String> headers) { final String value = getDebugLogValue(headers); return ConnectivityDebugLogValues.HEADER.allowedForExternalHeaderValue(value); }    }
@Test public void headersLogNotAllowedExplicitly() { assertThat(ConnectivityHeaders.isHeadersDebugLogEnabled(headers("OFF"))).isFalse(); }
@Test public void headersLogAllowedExplicitly() { assertThat(ConnectivityHeaders.isHeadersDebugLogEnabled(headers("HEADER"))).isTrue(); }
@Test public void headersLogAllowedImplicitly() { assertThat(ConnectivityHeaders.isHeadersDebugLogEnabled(DittoHeaders.empty())).isTrue(); assertThat(ConnectivityHeaders.isHeadersDebugLogEnabled(headers("ALL"))).isTrue(); }