@Test
    void verifyOperation() throws Throwable {
        val registry = new DefaultTicketRegistry(mock(TicketSerializationManager.class), new DefaultTicketCatalog(),
                mock(ConfigurableApplicationContext.class));
        val tgt = new MockTicketGrantingTicket("casuser", Map.of("name", List.of("CAS")));
        registry.addTicket(tgt);
        val support = new DefaultTicketRegistrySupport(registry);
        assertNotNull(support.getTicket(tgt.getId()));
        assertNull(support.getTicket(null));
        assertNull(support.getAuthenticationFrom(null));
        assertFalse(support.getPrincipalAttributesFrom(tgt.getId()).isEmpty());

        val authn = CoreAuthenticationTestUtils.getAuthentication("new-authn", Map.of("newAuthN", List.of("CAS-new")));
        support.updateAuthentication(tgt.getId(), authn);
        assertTrue(registry.getTicket(tgt.getId(), TicketGrantingTicket.class)
            .getAuthentication().getAttributes().containsKey("newAuthN"));

    }
This is {@link DefaultTicketRegistrySupportTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-tickets/src/test/java/org/apereo/cas/ticket/registry/DefaultTicketRegistrySupportTests.java