@Override
    public Mono<Void> save(MapSession session) {
        if (invalidateSessionIds.getIfPresent(session.getId()) != null) {
            return this.deleteById(session.getId());
        }
        return super.save(session)
            .then(updateIndex(session));
    }
@Test
    void saveTest() {
        var indexKey = createSession("fake-session-1", "test");

        assertThat(sessionRepository.getSessionIdIndexMap()).hasSize(1);
        assertThat(
            sessionRepository.getSessionIdIndexMap().containsValue(Set.of(indexKey))).isTrue();

        assertThat(sessionRepository.getIndexSessionIdMap()).hasSize(1);
        assertThat(sessionRepository.getIndexSessionIdMap().containsKey(indexKey)).isTrue();
        assertThat(sessionRepository.getIndexSessionIdMap().get(indexKey)).isEqualTo(
            Set.of("fake-session-1"));
    }