@Test
    void verifyAction() {
        val uid = UUID.randomUUID().toString();

        val passwordlessUserAccount = PasswordlessUserAccount.builder().username(uid).build();
        val passwordlessRequest = PasswordlessAuthenticationRequest.builder().username(uid).build();
        val token = passwordlessTokenRepository.createToken(passwordlessUserAccount, passwordlessRequest);

        assertTrue(passwordlessTokenRepository.findToken(uid).isEmpty());

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

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

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-passwordless-mongo/src/test/java/org/apereo/cas/impl/tokens/MongoDbPasswordlessTokenRepositoryTests.java