@Test
    void verifyTokenReuse() {
        val acct = getOneTimeTokenAccount();
        googleAuthenticatorAccountRegistry.save(acct);

        val otp1 = new OneTimeToken(556644, "casuser");
        oneTimeTokenAuthenticatorTokenRepository.store(otp1);
        assertThrows(AccountExpiredException.class,
            () -> validator.validate(CoreAuthenticationTestUtils.getAuthentication("casuser"),
                new GoogleAuthenticatorTokenCredential("556644", 123456L)));
    }
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