@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"));
    }
Tests {@link JEEContext}.

@author Jerome Leleu
@since 3.0.0
pac4j-javaee/src/test/java/org/pac4j/jee/context/JEEContextTest.java