@Test
    public void testSimpleMapping() throws IOException {
        assertTrue(objectMapper.canSerialize(Any.class));

        Struct struct1 =
                Struct.newBuilder()
                        .putFields(
                                "some-key", Value.newBuilder().setStringValue("some-value").build())
                        .build();

        Any source = Any.pack(struct1);

        StringWriter buf = new StringWriter();
        objectMapper.writer().writeValue(buf, source);

        Any dest = objectMapper.reader().forType(Any.class).readValue(buf.toString());
        assertEquals(source.getTypeUrl(), dest.getTypeUrl());

        Struct struct2 = dest.unpack(Struct.class);
        assertTrue(struct2.containsFields("some-key"));
        assertEquals(
                struct1.getFieldsOrThrow("some-key").getStringValue(),
                struct2.getFieldsOrThrow("some-key").getStringValue());
    }
Tests the customized {@link ObjectMapper} that is used by {@link com.netflix.conductor.Conductor}
application.
server/src/test/java/com/netflix/conductor/common/config/ConductorObjectMapperTest.java