@Test
    void verifyAddTicket() throws Throwable {
        var ticket = new TicketGrantingTicketImpl("TGT", CoreAuthenticationTestUtils.getAuthentication(), NeverExpiresExpirationPolicy.INSTANCE);
        ticketRegistry.addTicket(ticket);
        val cmd = new AddTicketMessageQueueCommand(new PublisherIdentifier(UUID.randomUUID().toString()), ticket)
            .withPublisherIdentifier(new PublisherIdentifier());
        cmd.execute(ticketRegistry);
        ticket = ticketRegistry.getTicket(ticket.getId(), ticket.getClass());
        assertNotNull(ticket);
        assertEquals("TGT", ticket.getId());
    }
This is {@link AddTicketMessageQueueCommandTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-amqp-ticket-registry/src/test/java/org/apereo/cas/ticket/registry/queue/AddTicketMessageQueueCommandTests.java