@Test
    void verifyOperation() throws Throwable {
        val devCode = defaultDeviceTokenFactory.createDeviceCode(RegisteredServiceTestUtils.getService());
        assertEquals(OAuth20DeviceToken.PREFIX, devCode.getPrefix());

        val uc = defaultDeviceUserCodeFactory.createDeviceUserCode(devCode.getService());
        assertNotNull(uc);
        assertEquals(OAuth20DeviceUserCode.PREFIX, uc.getPrefix());
    }
This is {@link OAuth20DefaultDeviceUserCodeTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/ticket/device/OAuth20DefaultDeviceUserCodeTests.java