@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create();
        val authentication = RegisteredServiceTestUtils.getAuthentication("casuseryubikey");
        WebUtils.putAuthentication(authentication, context);
        assertNull(yubiKeyDeviceProviderAction.execute(context));
        val registeredDevices = MultifactorAuthenticationWebflowUtils.getMultifactorAuthenticationRegisteredDevices(context);
        assertEquals(1, registeredDevices.size());

    }
This is {@link YubiKeyMultifactorAuthenticationDeviceProviderActionTests}.

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