@Test
    void verifyJwtForServiceTicketWithOwnKeys() throws Throwable {
        val service = CoreAuthenticationTestUtils.getWebApplicationService("https://jwt.example.org/cas");
        val jwt = tokenTicketBuilder.build("ST-123455", service);
        assertNotNull(jwt);
        val result = tokenCipherExecutor.decode(jwt);
        assertNull(result);

        val registeredService = servicesManager.findServiceBy(service);
        val cipher = new RegisteredServiceJwtTicketCipherExecutor();
        assertTrue(cipher.supports(registeredService));
        val decoded = cipher.decode(jwt, Optional.of(registeredService));
        val claims = JWTClaimsSet.parse(decoded);
        assertEquals("casuser", claims.getSubject());
    }
This is {@link JwtTicketBuilderTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-token-core/src/test/java/org/apereo/cas/token/JwtTicketBuilderTests.java