class Cookies {

    public void remove(String cookie) {
        List<Header> cookieHeaders = getHeader(HttpHeaders.COOKIE);
        for (Header header: cookieHeaders) {
            List<HttpCookie> cookieList = getAllCookiesFromHeader(header);
            cookieList = cookieList.stream()
                .filter(c -> !c.getName().equalsIgnoreCase(cookie))
                .collect(Collectors.toList());
            if (cookieList.isEmpty()) {
                request.removeHeaders(HttpHeaders.COOKIE);
            } else {
                request.setHeader(getCookieHeader(cookieList));
            }
        }
    }

    private  Cookies(HttpRequest request);

}