@Test
    void verifySaveToken() {
        val data = "THE_TOKEN";
        try (val webServer = new MockWebServer(9307,
            new ByteArrayResource(data.getBytes(StandardCharsets.UTF_8), "REST Output"), MediaType.APPLICATION_JSON_VALUE)) {
            webServer.start();
            val tokens = new CasConfigurationProperties().getAuthn().getPasswordless().getTokens();
            tokens.getRest().setUrl("http://localhost:9307");
            val passwordless = getRepository(tokens);

            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);
            passwordless.saveToken(passwordlessUserAccount, passwordlessRequest, token);
        }
    }
This is {@link RestfulPasswordlessTokenRepositoryTests}.

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