private void setUpEncryption() {
        var registry = (AbstractTicketRegistry) AopTestUtils.getTargetObject(ticketRegistry);
        if (this.useEncryption) {
            registry.setCipherExecutor(setupCipherExecutor());
        } else {
            registry.setCipherExecutor(CipherExecutor.noOp());
        }
    }
Determine whether the tested registry is able to iterate its tickets.
core/cas-server-core-tickets/src/test/java/org/apereo/cas/ticket/registry/BaseTicketRegistryTests.java