@Test
    void verifyAcctValidationScratchCode() throws Throwable {
        val acct = getOneTimeTokenAccount(CollectionUtils.wrapList(834251));
        googleAuthenticatorAccountRegistry.save(acct);

        val cred = new GoogleAuthenticatorTokenCredential("834251", acct.getId());
        assertNotNull(validator.validate(CoreAuthenticationTestUtils.getAuthentication(acct.getUsername()), cred));
        assertTrue(googleAuthenticatorAccountRegistry.get(acct.getId()).getScratchCodes().isEmpty());
    }
This is {@link GoogleAuthenticatorOneTimeTokenCredentialValidatorTests}.

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