@Test
    void checkSerializationOfTgtByteSource() throws Exception {
        val bytes = ByteSource.wrap(SerializationUtils.serializeAndEncodeObject(cipher, tgt));
        val obj = SerializationUtils.decodeAndDeserializeObject(bytes.read(), cipher, Ticket.class);
        assertNotNull(obj);
    }
Test cases for {@link CompressionUtils}.

@author Misagh Moayyed
@since 4.2
core/cas-server-core-tickets/src/test/java/org/apereo/cas/util/TicketEncryptionDecryptionTests.java