@Test
    void verifySave() {
        val username = UUID.randomUUID().toString();
        assertNull(registry.get(654321));
        assertNull(registry.get(username, 654321));
        val validationCode = RandomUtils.nextInt(1, 999999);
        val toSave = OneTimeTokenAccount.builder()
            .username(username)
            .secretKey("secret")
            .validationCode(validationCode)
            .scratchCodes(CollectionUtils.wrapList(1, 2, 3, 4, 5, 6))
            .name(UUID.randomUUID().toString())
            .build();
        registry.save(toSave);

        val account = registry.get(username).iterator().next();
        assertEquals("secret", account.getSecretKey());
        assertEquals(validationCode, account.getValidationCode());
        val accounts = registry.load();
        assertFalse(accounts.isEmpty());
    }
This is {@link RedisGoogleAuthenticatorTokenCredentialRepositoryTests}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-gauth-redis/src/test/java/org/apereo/cas/gauth/credential/RedisGoogleAuthenticatorTokenCredentialRepositoryTests.java