class AccessTokenManagerImpl implements AccessTokenManager {

    @Override
    public Mono<Boolean> isValid(AccessToken token) throws InvalidAccessToken {
        try {
            return getUsernameFromToken(token)
                .thenReturn(true);
        } catch (InvalidAccessToken e) {
            return Mono.just(false);
        }
    }

    @Inject  AccessTokenManagerImpl(AccessTokenRepository accessTokenRepository);

}