@Test
    void verifyCipherStrategyPerService() {
        val service = RegisteredServiceTestUtils.getRegisteredService();
        val cipher = new RegisteredServiceJwtTicketCipherExecutor();
        assertTrue(cipher.getCipherOperationsStrategyType(service).isEmpty());

        service.getProperties().put(RegisteredServiceProperties.TOKEN_AS_SERVICE_TICKET_CIPHER_STRATEGY_TYPE.getPropertyName(),
            new DefaultRegisteredServiceProperty(BaseStringCipherExecutor.CipherOperationsStrategyType.SIGN_AND_ENCRYPT.name()));
        assertTrue(cipher.getCipherOperationsStrategyType(service).isPresent());
    }
This is {@link RegisteredServiceJwtTicketCipherExecutorTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-token-core/src/test/java/org/apereo/cas/token/cipher/RegisteredServiceJwtTicketCipherExecutorTests.java