@Test
void parsesSetCookieHeader() {

    final HeaderFilter unit = replaceCookies("sessionToken"::equals, "XXX");
    final HttpHeaders before = HttpHeaders.of(
            "Set-Cookie",
            "theme=light",
            "sessionToken=abc123; Path=/; Expires=Wed, 09 Jun 2021 10:18:14 GMT");
    final HttpHeaders after = unit.filter(before);
    assertThat(after, hasEntry("Set-Cookie", asList(
            "theme=light",
            "sessionToken=XXX; Path=/; Expires=Wed, 09 Jun 2021 10:18:14 GMT"
    )));
}