public void setCookie(String name, String value) {
        Cookie cookie = new Cookie(name, value);
        setCookies(List.of(cookie));
    }
@Test
    void testSetCookie() {
        URI uri = URI.create("http://example.com/test");
        HttpRequest httpReq = newRequest(uri, HttpRequest.Method.GET, HttpRequest.Version.HTTP_1_1);
        HttpResponse httpResp = newResponse(httpReq, 200);
        DiscFilterResponse response = new DiscFilterResponse(httpResp);
        response.setCookie("name", "value");
        List<Cookie> cookies = response.getCookies();
        assertEquals(cookies.size(), 1);
        assertEquals(cookies.get(0).getName(), "name");

    }