@Test
    void verifyFindTokenFails() {
        try (val webServer = new MockWebServer(9306,
            new ByteArrayResource("token".getBytes(StandardCharsets.UTF_8), "REST Output"), MediaType.APPLICATION_JSON_VALUE)) {
            webServer.start();
            val tokens = new CasConfigurationProperties().getAuthn().getPasswordless().getTokens();
            tokens.getRest().setUrl("http://localhost:9306");
            val passwordless = getRepository(tokens);
            val foundToken = passwordless.findToken("casuser");
            assertTrue(foundToken.isEmpty());
        }
    }
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