@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create();
        WebUtils.putAuthentication(CoreAuthenticationTestUtils.getAuthentication(), context);
        val resolver = mock(CasWebflowEventResolver.class);
        when(resolver.resolve(any())).thenReturn(Set.of(new EventFactorySupport().success(this)));
        when(resolver.resolveSingle(any())).thenReturn(new EventFactorySupport().success(this));

        val action = new YubiKeyAuthenticationWebflowAction(resolver, mock(TenantExtractor.class));
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, action.execute(context).getId());
    }
This is {@link YubiKeyAuthenticationWebflowActionTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-yubikey-core/src/test/java/org/apereo/cas/adaptors/yubikey/web/flow/YubiKeyAuthenticationWebflowActionTests.java