JacksonUtils { public static JsonNode objectToJsonNode(Object val) { return MAPPER.valueToTree(val); } private  JacksonUtils(); static String jsonToString(JsonNode node); static JsonNode stringToJsonNode(String paramName, String val); static JsonNode objectToJsonNode(Object val);  }
@Test public void objectToJsonNode_ReturnsJsonNode() throws JsonProcessingException { JsonNode actual = objectToJsonNode(new SimplePojo("value")); assertJsonEquals("{\"foo\": \"value\"}", MAPPER.writeValueAsString(actual)); }