@Test
    void verifyJwtForTicketGrantingTicket() throws Throwable {
        val tgt = new MockTicketGrantingTicket("casuser");
        val jwt = tokenTicketBuilder.build(tgt, Map.of());
        assertNotNull(jwt);
        val result = tokenCipherExecutor.decode(jwt);
        val claims = JWTClaimsSet.parse(result.toString());
        assertEquals(claims.getSubject(), tgt.getAuthentication().getPrincipal().getId());
    }
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