@Test
    void verifyOperation() throws Throwable {
        assertEquals(OidcBackchannelTokenDeliveryModes.POLL, oidcCibaPollTokenDeliveryHandler.getDeliveryMode());
        val registeredService = getOidcRegisteredService(UUID.randomUUID().toString());
        registeredService.setBackchannelTokenDeliveryMode(OidcBackchannelTokenDeliveryModes.POLL.getMode());
        registeredService.setSupportedGrantTypes(Set.of(OAuth20GrantTypes.CIBA.getType()));
        servicesManager.save(registeredService);
        assertTrue(oidcCibaPollTokenDeliveryHandler.supports(registeredService));

        val principal = RegisteredServiceTestUtils.getPrincipal(UUID.randomUUID().toString());
        val cibaRequest = newCibaRequest(registeredService, principal);
        val delivery = oidcCibaPollTokenDeliveryHandler.deliver(registeredService, cibaRequest);
        assertTrue(delivery.containsKey(OidcConstants.AUTH_REQ_ID));
        val ticket = ticketRegistry.getTicket(cibaRequest.getId(), OidcCibaRequest.class);
        assertNotNull(ticket);
        assertTrue(ticket.isReady());
    }
This is {@link CibaPollTokenDeliveryHandlerTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/token/ciba/CibaPollTokenDeliveryHandlerTests.java