@Test
    void verifyOperation() throws Exception {
        val request = new MockHttpServletRequest();
        request.setRemoteAddr("185.86.151.12");
        request.setLocalAddr("185.88.151.11");
        request.addHeader(HttpHeaders.USER_AGENT, "firefox");
        request.setContextPath("/cas/tenants/cookie/login");
        val resolver = new DefaultCipherExecutorResolver(CipherExecutor.noOp(), tenantExtractor,
            TicketGrantingCookieProperties.class, bindingContext -> {
            val properties = bindingContext.value();
            return CipherExecutorUtils.newStringCipherExecutor(properties.getTgc().getCrypto(), TicketGrantingCookieCipherExecutor.class);
        });
        val cipher = resolver.resolve(request);
        assertNotNull(cipher);
        assertTrue(cipher.isEnabled());
        val cookieValue = UUID.randomUUID().toString();
        val encoded = cipher.encode(cookieValue);
        assertNotEquals(cookieValue, encoded);
        val decoded = cipher.decode(encoded);
        assertEquals(cookieValue, decoded);
    }
This is {@link DefaultCipherExecutorResolverTests}.

@author Misagh Moayyed
@since 7.3.0
core/cas-server-core-multitenancy/src/test/java/org/apereo/cas/web/support/DefaultCipherExecutorResolverTests.java