@Test
    void verifyRegexRegisteredService() {
        var service = RegisteredServiceTestUtils.getRegisteredService("example");
        var encoded = transcoder.encode(service);
        var decoded = transcoder.decode(encoded);
        assertEquals(service, decoded);
        service = RegisteredServiceTestUtils.getRegisteredService("example");
        val attributeReleasePolicy = new ReturnAllAttributeReleasePolicy();
        attributeReleasePolicy.setPrincipalAttributesRepository(new DefaultPrincipalAttributesRepository());
        service.setAttributeReleasePolicy(attributeReleasePolicy);
        encoded = transcoder.encode(service);
        decoded = transcoder.decode(encoded);
        assertEquals(service, decoded);
    }
Unit test for {@link CasKryoTranscoder} class.

@author Marvin S. Addison
@since 3.0.0
support/cas-server-support-memcached-core/src/test/java/org/apereo/cas/memcached/kryo/CasKryoTranscoderTests.java