@Test
    void verifyToken() {
        passwordlessTokenRepository.clean();

        val passwordlessUserAccount = PasswordlessUserAccount.builder().username(CAS_USER).build();
        val passwordlessRequest = PasswordlessAuthenticationRequest.builder().username(CAS_USER).build();
        val token = passwordlessTokenRepository.createToken(passwordlessUserAccount, passwordlessRequest);
        assertTrue(passwordlessTokenRepository.findToken(CAS_USER).isEmpty());

        val savedToken = passwordlessTokenRepository.saveToken(passwordlessUserAccount, passwordlessRequest, token);
        assertTrue(passwordlessTokenRepository.findToken(CAS_USER).isPresent());

        passwordlessTokenRepository.deleteToken(savedToken);
        assertTrue(passwordlessTokenRepository.findToken(CAS_USER).isEmpty());
    }
This is {@link InMemoryPasswordlessTokenRepositoryTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-passwordless-authentication/src/test/java/org/apereo/cas/impl/token/InMemoryPasswordlessTokenRepositoryTests.java