@SuppressWarnings("deprecation")
protected ObjectMapper createObjectMapper() {
ObjectMapper m = new ObjectMapper();
m.configure(SerializationConfig.Feature.WRITE_NULL_PROPERTIES, false);
m.configure(SerializationConfig.Feature.WRITE_ENUMS_USING_TO_STRING, true);
m.configure(DeserializationConfig.Feature.READ_ENUMS_USING_TO_STRING, true);
m.setPropertyNamingStrategy(PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES);
m.setSerializationInclusion(JsonSerialize.Inclusion.NON_EMPTY);
// If Zencoder adds a new field before we have a chance to update, silently ignore these fields.
// NOTE: disable this during testing
m.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);