@RepeatedTest(1)
    void verifyCreatePgt() throws Throwable {
        val tgt = new MockTicketGrantingTicket("casuser");
        newTicketRegistry.addTicket(tgt);
        val service = RegisteredServiceTestUtils.getService();

        val serviceTicketId = TestTicketIdentifiers.generate().serviceTicketId();
        val st = new MockServiceTicket(serviceTicketId, service, tgt);
        newTicketRegistry.addTicket(st);
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(new HashMap());
        servicesManager.save(registeredService);

        centralAuthenticationService.createProxyGrantingTicket(st.getId(), CoreAuthenticationTestUtils.getAuthenticationResult(service));
        assertEquals(0, tgt.getProxyGrantingTickets().size());
        val tgt2 = newTicketRegistry.getTicket(tgt.getId(), TicketGrantingTicket.class);
        assertEquals(1, tgt2.getProxyGrantingTickets().size());
    }
Unit test for MemcachedTicketRegistry class.

@author Middleware Services
@since 3.0.0
@deprecated Since 7.0.0
support/cas-server-support-memcached-ticket-registry/src/test/java/org/apereo/cas/ticket/registry/MemcachedTicketRegistryTests.java