@Test
    void verifyOperation() {
        val jwt = new PlainJWT(new JWTClaimsSet.Builder()
            .audience("audience")
            .subject("subject")
            .expirationTime(new Date())
            .issueTime(new Date())
            .claim("first_name", "name")
            .build());
        val oidcProfile = new OidcProfile();
        oidcProfile.setId("id");
        oidcProfile.setIdTokenString(jwt.serialize());

        val ticket = new TransientSessionTicketImpl(UUID.randomUUID().toString(),
            NeverExpiresExpirationPolicy.INSTANCE, RegisteredServiceTestUtils.getService(),
            Map.of("profiles", oidcProfile));
        val content = tstSerializer.toString(ticket);
        assertSame(tstSerializer.getTypeToSerialize(), tstSerializer.from(content).getClass());
    }
This is {@link DelegatedClientSerializationTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-pac4j-oidc/src/test/java/org/apereo/cas/support/pac4j/DelegatedClientSerializationTests.java