@Override
    public void addResponseCookie(Cookie cookie) {
        this.response.addHeader("Set-Cookie", WebContextHelper.createCookieHeader(cookie));
    }
@Test
    public void testCookieExpires() {
        var mockResponse = new MockHttpServletResponse();
        WebContext context = new JEEContext(request, mockResponse);
        Cookie c = new Cookie("thename","thevalue");
        c.setMaxAge(1000);
        context.addResponseCookie(c);

        var header = mockResponse.getHeader("Set-Cookie");
        assertNotNull(header);
        assertTrue(header.matches("thename=thevalue; Path=/; Max-Age=1000; Expires=.* GMT; SameSite=Lax"));
    }