public static <T> T testSerialisation(final T object,
                                          final Class<T> clazz,
                                          final BiConsumer<ObjectMapper, String> jsonConsumer) {
        final ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
        return testSerialisation(object, clazz, jsonConsumer, objectMapper);
    }
See {@link TestUtil#testSerialisation(Object, Class, BiConsumer, ObjectMapper)}
stroom-test-common/src/main/java/stroom/test/common/TestUtil.java