@Test
    void verifyBadToken() {
        assertThrows(PreventedException.class,
            () -> validator.validate(CoreAuthenticationTestUtils.getAuthentication("casuser"),
                new GoogleAuthenticatorTokenCredential("abcdefg", 123456L)));
        assertThrows(AccountNotFoundException.class,
            () -> validator.validate(CoreAuthenticationTestUtils.getAuthentication("unknown-user"),
                new GoogleAuthenticatorTokenCredential("112233", 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