@Test
void getAndRefreshWithExpiredSession() {

    localSessionStore.values.put("sessionId", sessionValue(Instant.now().minus(Duration.ofSeconds(30)), Map.of()));
    Map<String, String> values = localSessionStore.getAndRefresh("sessionId", null, Duration.ofSeconds(30));
    assertThat(values).isNull();
}