@Test
    void verifyAction() throws Throwable {
        val account = PasswordlessUserAccount.builder()
            .email("passwordlessuser@example.org")
            .phone("1234567890")
            .username("passwordlessuser")
            .name("CAS")
            .attributes(Map.of("lastName", List.of("Smith")))
            .build();
        val mongo = casProperties.getAuthn().getPasswordless().getAccounts().getMongo();
        mongoDbTemplate.save(account, mongo.getCollection());

        val user = passwordlessUserAccountStore.findUser(
            PasswordlessAuthenticationRequest
                .builder()
                .username("passwordlessuser")
                .build());
        assertTrue(user.isPresent());
        assertEquals("passwordlessuser@example.org", user.get().getEmail());
        assertEquals("1234567890", user.get().getPhone());
    }
This is {@link MongoDbPasswordlessUserAccountStoreTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-passwordless-mongo/src/test/java/org/apereo/cas/impl/account/MongoDbPasswordlessUserAccountStoreTests.java