@Test
    void verifyUpdateTicket() throws Throwable {
        var ticket = new TicketGrantingTicketImpl("TGT",
            CoreAuthenticationTestUtils.getAuthentication(), NeverExpiresExpirationPolicy.INSTANCE);
        val cmd = new UpdateTicketMessageQueueCommand(new PublisherIdentifier(), ticket)
            .withPublisherIdentifier(new PublisherIdentifier());
        cmd.execute(ticketRegistry);
        ticket = ticketRegistry.getTicket(ticket.getId(), ticket.getClass());
        assertNotNull(ticket);
        assertEquals("TGT", ticket.getId());
    }
This is {@link UpdateTicketMessageQueueCommandTests}.

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