public JDiscCookieWrapper[] getWrappedCookies() {
        List<Cookie> cookies = getCookies();
        if (cookies == null)  {
            return null;
        }
        List<JDiscCookieWrapper> cookieWrapper = new ArrayList<>(cookies.size());
        for(Cookie cookie : cookies) {
            cookieWrapper.add(JDiscCookieWrapper.wrap(cookie));
        }

        return cookieWrapper.toArray(new JDiscCookieWrapper[cookieWrapper.size()]);
    }
@Test
    void testGetWrapedCookies() {
        URI uri = URI.create("http://example.yahoo.com/test");
        HttpRequest httpReq = newRequest(uri, HttpRequest.Method.GET, HttpRequest.Version.HTTP_1_1);
        httpReq.headers().put(HttpHeaders.Names.COOKIE, "XYZ=value");
        DiscFilterRequest request = new DiscFilterRequest(httpReq);
        JDiscCookieWrapper[] wrappers = request.getWrappedCookies();
        assertEquals(wrappers.length, 1);
        assertEquals(wrappers[0].getName(), "XYZ");
        assertEquals(wrappers[0].getValue(), "value");
    }