@Test
    void verifyActionRegister() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        val authentication = CoreAuthenticationTestUtils.getAuthentication();
        WebUtils.putAuthentication(authentication, context);
        MultifactorAuthenticationWebflowUtils.putMultifactorAuthenticationProvider(context, new YubiKeyMultifactorAuthenticationProvider());
        val registry = new ClosedYubiKeyAccountRegistry(new DenyAllYubiKeyAccountValidator());
        val action = new YubiKeyAccountCheckRegistrationAction(registry, tenantExtractor);
        assertEquals(CasWebflowConstants.TRANSITION_ID_REGISTER, action.execute(context).getId());

    }
This is {@link YubiKeyAccountCheckRegistrationActionTests}.

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