@Test
  public void containersShouldExpireInSetTimeframe()
      throws IOException, URISyntaxException, InterruptedException {
    manager.startAllInactiveContainers();
    await().until(() -> {
      ServerContainer container = manager.getContainer(0);
      return container.getState().isStarted();
    });

    String key = "value_testSessionExpiration";
    String value = "Foo";

    client.setPort(Integer.parseInt(manager.getContainerPort(0)));
    Client.Response resp = client.set(key, value);
    await().untilAsserted(() -> getKeyValueDataOnAllClients(key, value, resp.getSessionCookie()));
    client.setMaxInactive(1); // max inactive time is 1 second. Lets wait a second.
    Thread.sleep(2000);

    await().atMost(10, TimeUnit.SECONDS).untilAsserted(() -> {
      verifySessionIsRemoved(key);
      Thread.sleep(1000);
    });

    checkLogs();
  }
Test that if a session is not used within the expiration time, it is expired and removed from
all containers
geode-assembly/src/distributedTest/java/org/apache/geode/session/tests/CargoTestBase.java