### Question:
StdObjectMapperFactory implements ObjectMapperFactory { public synchronized ObjectMapper createObjectMapper() { ObjectMapper result = instance; if (result == null) { result = new ObjectMapper(); applyDefaultConfiguration(result); instance = result; } return result; }  synchronized ObjectMapper createObjectMapper(); ObjectMapper createObjectMapper(CouchDbConnector connector); synchronized void setObjectMapper(ObjectMapper om); void setWriteDatesAsTimestamps(boolean b);  }### Answer:
@Test public void shouldSerializeBeanPropertiesByDefault() throws JsonProcessingException { ObjectMapper objectMapper = factory.createObjectMapper(); String actual = objectMapper.writeValueAsString(new Pair("couch", "db")); assertEquals("{\"name\":\"couch\",\"value\":\"db\"}", actual); }
@Test public void shouldNotSerializeNullBeanPropertiesByDefault() throws JsonProcessingException { ObjectMapper objectMapper = factory.createObjectMapper(); String actual = objectMapper.writeValueAsString(new Pair("couch", null)); assertEquals("{\"name\":\"couch\"}", actual); }