@Test
    void verifyXMLFactory() throws Throwable {
        val mapper = JacksonObjectMapperFactory.builder()
            .jsonFactory(new XmlFactory())
            .build()
            .toObjectMapper();
        val payload = new Payload().setFirstName("Bob").setNumber(1000);
        val results = mapper.writeValueAsString(payload);
        val read = mapper.readValue(results, Payload.class);
        assertEquals(read, payload);
    }
This is {@link JacksonObjectMapperFactoryTests}.

@author Misagh Moayyed
@since 6.6.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/serialization/JacksonObjectMapperFactoryTests.java