@RepeatedTest(2)
    void verifyAccessTokenCanBeAdded() throws Throwable {
        val code = createOAuthCode();
        val jwtBuilder = new JwtBuilder(CipherExecutor.noOpOfSerializableToString(),
            applicationContext, servicesManager, principalResolver,
            RegisteredServiceCipherExecutor.noOp(), webApplicationServiceFactory, casProperties);
        val token = new OAuth20DefaultAccessTokenFactory(
            newTicketRegistry, neverExpiresExpirationPolicyBuilder(), jwtBuilder,
            servicesManager, TicketTrackingPolicy.noOp())
            .create(RegisteredServiceTestUtils.getService(),
                RegisteredServiceTestUtils.getAuthentication(), new MockTicketGrantingTicket("casuser"),
                CollectionUtils.wrapSet("1", "2"), code.getId(), "clientId1234567", new HashMap<>(),
                OAuth20ResponseTypes.CODE, OAuth20GrantTypes.AUTHORIZATION_CODE);
        newTicketRegistry.addTicket(token);
        assertSame(1, newTicketRegistry.deleteTicket(token.getId()), "Wrong ticket count");
        assertNull(newTicketRegistry.getTicket(token.getId()));
    }
This is {@link DynamoDbTicketRegistryTests}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-dynamodb-ticket-registry/src/test/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryTests.java