@Override
    public Mono<Void> deleteById(String id) {
        return removeIndex(id)
            .then(Mono.defer(() -> {
                invalidateSessionIds.put(id, true);
                return super.deleteById(id);
            }));
    }
@Test
    void deleteByIdTest() {
        createSession("fake-session-2", "test1");
        sessionRepository.deleteById("fake-session-2")
            .as(StepVerifier::create)
            .verifyComplete();
        assertThat(sessionRepository.getSessionIdIndexMap()).isEmpty();
        assertThat(sessionRepository.getIndexSessionIdMap()).isEmpty();
    }