@Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
        throws IOException, ServletException {
      final HttpServletRequest httpRequest = (HttpServletRequest) request;
      httpRequest.getSession();
      httpRequest.setAttribute("original_session", httpRequest.getSession());
      request = new HttpServletRequestWrapper(httpRequest);
      chain.doFilter(request, response);

    }
Subsequent calls should not return true
extensions/geode-modules-session/src/integrationTest/java/org/apache/geode/modules/session/internal/filter/CommonTests.java