@Override
    public boolean hasSetCookieWithName(String cookieName) {
        for (String setCookieValue : getHeaders().getAll(HttpHeaderNames.SET_COOKIE)) {
            Cookie cookie = ClientCookieDecoder.STRICT.decode(setCookieValue);
            if (cookie.name().equalsIgnoreCase(cookieName)) {
                return true;
            }
        }
        return false;
    }
@Test
    void testHasSetCookieWithName() {
        response.getHeaders()
                .add(
                        "Set-Cookie",
                        "c1=1234; Max-Age=-1; Expires=Tue, 01 Sep 2015 22:49:57 GMT; Path=/; Domain=.netflix.com");
        response.getHeaders()
                .add(
                        "Set-Cookie",
                        "c2=4567; Max-Age=-1; Expires=Tue, 01 Sep 2015 22:49:57 GMT; Path=/; Domain=.netflix.com");

        assertTrue(response.hasSetCookieWithName("c1"));
        assertTrue(response.hasSetCookieWithName("c2"));
        assertFalse(response.hasSetCookieWithName("XX"));
    }