@Test
  public void testSessionExpiration2() {
    // TestSessions only live for a minute
    sessionManager
        .propertyChange(new PropertyChangeEvent(server.getRootContext(), "sessionTimeout", 30, 1));

    // Check that the value has been set to 60 seconds
    assertThat(sessionManager.getMaxInactiveInterval()).isEqualTo(60);
  }
Test setting the session expiration via a property change as would happen under normal
deployment conditions.
extensions/geode-modules-tomcat8/src/distributedTest/java/org/apache/geode/modules/session/TestSessionsTomcat8Base.java