@BeforeEach
    void beforeEach() {
        val classesToRegister = new ArrayList<Class>();
        classesToRegister.add(MockServiceTicket.class);
        classesToRegister.add(MockTicketGrantingTicket.class);
        classesToRegister.addAll(componentSerializationPlan.getRegisteredClasses());

        val props = new BaseMemcachedProperties();
        this.transcoder = MemcachedUtils.newTranscoder(props, classesToRegister);
        this.principalAttributes = new HashMap<>();
        this.principalAttributes.put(NICKNAME_KEY, List.of(NICKNAME_VALUE));
        this.principalAttributes.put("geoLocationRequest", List.of(new GeoLocationRequest(1, 1)));
        this.principalAttributes.put("geoLocationResponse", List.of(new GeoLocationResponse().addAddress("England")));
    }
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