@Test
    void verifyAction() throws Throwable {
        val client = mock(YubicoClient.class);
        val r = mock(VerificationResponse.class);
        when(client.verify(anyString())).thenReturn(r);
        when(r.getStatus()).thenReturn(ResponseStatus.OK);
        when(r.getTimestamp()).thenReturn(String.valueOf(new Date().getTime()));
        val v = new DefaultYubiKeyAccountValidator(client);
        assertTrue(v.isValid("casuser", "cccccccvlidcrkrrculeevnlcjbngciggidutebbkjrv"));
    }
This is {@link DefaultYubiKeyAccountValidatorTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-yubikey-core/src/test/java/org/apereo/cas/adaptors/yubikey/DefaultYubiKeyAccountValidatorTests.java