@Test
    void verifyCustom() {
        val service = RegisteredServiceTestUtils.getService();
        service.getAttributes().clear();
        val registeredService = getRegisteredService(service.getId(), UUID.randomUUID().toString(), CLIENT_SECRET);
        service.getAttributes().put(OAuth20Constants.CLIENT_ID, List.of(registeredService.getClientId()));
        
        registeredService.setDeviceTokenExpirationPolicy(new DefaultRegisteredServiceOAuthDeviceTokenExpirationPolicy("PT60S"));
        servicesManager.save(registeredService);
        val builder = new TicketGrantingTicketExpirationPolicyBuilder(casProperties);
        val policy = OAuth20DeviceTokenUtils.determineExpirationPolicyForService(servicesManager, builder, service);
        assertEquals(60, policy.getTimeToLive());
    }
This is {@link OAuth20DeviceTokenUtilsTests}.

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