@Override
    public Mono<AccessToken> createAccessToken(String clientId,
                                               Authentication authentication,
                                               boolean singleton) {
        return singleton
                ? doCreateSingletonAccessToken(clientId, authentication)
                : doCreateAccessToken(clientId, authentication, false).map(token -> token.toAccessToken(tokenExpireIn));
    }
@Test
    public void testCreateAccessToken() {
        RedisAccessTokenManager tokenManager = new RedisAccessTokenManager(RedisHelper.factory);

        SimpleAuthentication authentication = new SimpleAuthentication();
        authentication.setUser(SimpleUser.builder()
                                         .id("test")
                                         .build());
        tokenManager.createAccessToken("test", authentication, false)
                    .doOnNext(System.out::println)
                    .as(StepVerifier::create)
                    .expectNextCount(1)
                    .verifyComplete();

    }