@Test
public void should_format_json_when_using_pretty_print_on_object() throws Exception {

    SimpleObject object = new SimpleObject("id", "Vincent", 1);
    assertThat(objectMapper.prettyPrint(object)).isEqualTo("{" + System.lineSeparator() +
            "  \"id\" : \"id\"," + System.lineSeparator() +
            "  \"name\" : \"Vincent\"," + System.lineSeparator() +
            "  \"number\" : 1," + System.lineSeparator() +
            "  \"another\" : null" + System.lineSeparator() +
            "}");
}