@Test
void replacesHeadersByName() {

    final HeaderFilter unit = HeaderFilters.replaceHeaders(
            "name"::equalsIgnoreCase,
            "<secret>");
    final HttpHeaders actual = unit.filter(HttpHeaders.empty()
            .update("name", "Alice", "Bob"));
    assertThat(actual,
            hasEntry("name", Arrays.asList("<secret>", "<secret>")));
}