@Test
  public void testCookieSecure() {

    boolean secure = true;
    asMyMockServlet(getWebMockObjectFactory().getMockServletContext()).getSessionCookieConfig()
        .setSecure(secure);

    doFilter();
    ((HttpServletRequest) getFilteredRequest()).getSession();

    MockHttpServletResponse response = getWebMockObjectFactory().getMockResponse();
    Cookie cookie = (Cookie) response.getCookies().get(0);

    assertEquals(secure, cookie.getSecure());
  }
Test that repeated accesses update the last accessed time
extensions/geode-modules-session/src/integrationTest/java/org/apache/geode/modules/session/internal/filter/CommonTests.java