@Test
void replacesHeadersByNameAndValue() {

    final HeaderFilter unit = HeaderFilters.replaceHeaders(
            (name, value) -> "name".equals(name) && "Alice".equals(value),
            "<secret>");
    assertThat(
            unit.filter(HttpHeaders.of("name", "Alice")),
            hasEntry("name", singletonList("<secret>")));
    assertThat(
            unit.filter(HttpHeaders.of("name", "Bob")),
            hasEntry("name", singletonList("Bob")));
}