@Test
    void verifyOperation() {
        val principal = RegisteredServiceTestUtils.getPrincipal("casuser");
        val devices = yubikeyMultifactorAuthenticationProvider.getDeviceManager()
            .findRegisteredDevices(principal);
        assertEquals(1, devices.size());
        assertTrue(yubikeyMultifactorAuthenticationProvider.getDeviceManager().hasRegisteredDevices(principal));

        val device = devices.getFirst();
        yubikeyMultifactorAuthenticationProvider.getDeviceManager().removeRegisteredDevice(principal, device.getId());
        assertFalse(yubikeyMultifactorAuthenticationProvider.getDeviceManager().hasRegisteredDevices(principal));
    }
Test cases for {@link YubiKeyMultifactorAuthenticatorDeviceManager}.

@author Misagh Moayyed
@since 7.2
support/cas-server-support-yubikey/src/test/java/org/apereo/cas/adaptors/yubikey/YubiKeyMultifactorAuthenticatorDeviceManagerTests.java