@RepeatedTest(2)
    void verifyAddTicketWithStream() {
        val originalAuthn = CoreAuthenticationTestUtils.getAuthentication();
        val ticketGrantingTicket = new TicketGrantingTicketImpl(TestTicketIdentifiers.generate().ticketGrantingTicketId(),
            originalAuthn, NeverExpiresExpirationPolicy.INSTANCE);
        val streamToAdd = Stream.of(ticketGrantingTicket);
        val addedTickets = ticketRegistry.addTicket(streamToAdd);
        val ticketToFetch = addedTickets.isEmpty() ? ticketGrantingTicket.getId() : addedTickets.getFirst().getId();
        val tgt = ticketRegistry.getTicket(ticketToFetch, TicketGrantingTicket.class);
        assertNotNull(tgt);
    }
This is {@link BaseTicketRegistryTests}.

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