@Test
    void checkSerializationOfStBase64Encode() {
        val st = new MockServiceTicket("serviceid", RegisteredServiceTestUtils.getService(), tgt);
        val bytes = SerializationUtils.serializeAndEncodeObject(cipher, st);
        val string = EncodingUtils.encodeBase64(bytes);
        assertNotNull(string);
        val result = EncodingUtils.decodeBase64(string);
        val obj = SerializationUtils.decodeAndDeserializeObject(result, 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