@Test
  public void testExtraSessionsNotCreated() throws Exception {
    Callback c = (request, response) -> {
      // Do nothing with sessions
      response.getWriter().write("done");
    };
    servlet.getServletContext().setAttribute("callback", c);

    WebConversation wc = new WebConversation();
    WebRequest req = new GetMethodWebRequest(String.format("http://localhost:%d/test", port));

    // Execute the callback
    req.setParameter("cmd", QueryCommand.CALLBACK.name());
    req.setParameter("param", "callback");

    WebResponse response = wc.getResponse(req);
    assertThat(response.getText()).isEqualTo("done");
    assertThat(region.size()).as("The region should contain one entry").isEqualTo(1);
  }
Test for issue #45 Sessions are being created for every request
extensions/geode-modules-tomcat8/src/distributedTest/java/org/apache/geode/modules/session/TestSessionsTomcat8Base.java