@Test
    void verifySerialization() throws Throwable {
        val d = new DefaultMessageDescriptor("sample.code");
        MAPPER.writeValue(JSON_FILE, d);
        val read = MAPPER.readValue(JSON_FILE, MessageDescriptor.class);
        assertEquals(d, read);
    }
This is {@link DefaultMessageDescriptorTests}.

@author Misagh Moayyed
@since 6.5.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/DefaultMessageDescriptorTests.java