@Test
    void verifySave() throws Throwable {
        try (val webServer = new MockWebServer()) {
            val props = new GoogleAuthenticatorMultifactorProperties();
            props.getRest().setUrl("http://localhost:" + webServer.getPort());
            val repo = buildRepositoryInstance(props);
            val account = repo.create(UUID.randomUUID().toString());
            val entity = MAPPER.writeValueAsString(account);
            webServer.responseBody(entity);
            webServer.start();
            assertDoesNotThrow(() -> {
                val toSave = OneTimeTokenAccount.builder()
                    .username(account.getUsername())
                    .secretKey(account.getSecretKey())
                    .validationCode(0)
                    .scratchCodes(List.of())
                    .name(UUID.randomUUID().toString())
                    .tenant(UUID.randomUUID().toString())
                    .build();
                repo.save(toSave);
            });
        }
    }
This is {@link RestGoogleAuthenticatorTokenCredentialRepositoryTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-gauth/src/test/java/org/apereo/cas/gauth/credential/RestGoogleAuthenticatorTokenCredentialRepositoryTests.java