@Test
void shouldRemoveHeaderByNamePredicate() {

    final HeaderFilter unit = removeHeaders("name"::equals);
    final HttpHeaders filtered = unit.filter(
            HttpHeaders.empty()
                    .update("name", "Alice", "Bob")
                    .update("age", "18"));
    assertThat(filtered, not(hasKey("name")));
    assertThat(filtered, hasEntry("age", singletonList("18")));
}