@RepeatedTest(2)
    void verifyOAuthCodeIsAddedToMemcached() throws Throwable {
        val factory = new OAuth20DefaultOAuthCodeFactory(new DefaultUniqueTicketIdGenerator(),
            neverExpiresExpirationPolicyBuilder(), servicesManager, CipherExecutor.noOpOfStringToString(),
            TicketTrackingPolicy.noOp());
        val code = factory.create(RegisteredServiceTestUtils.getService(),
            CoreAuthenticationTestUtils.getAuthentication(),
            new MockTicketGrantingTicket("casuser"),
            CollectionUtils.wrapList("openid"),
            "code-challenge", "plain", "clientId123456",
            new HashMap<>(),
            OAuth20ResponseTypes.CODE, OAuth20GrantTypes.AUTHORIZATION_CODE);
        this.newTicketRegistry.addTicket(code);
        val ticket = this.newTicketRegistry.getTicket(code.getId(), OAuth20Code.class);
        assertNotNull(ticket);
    }
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