@Test
public void should_serialize_object_into_json() throws Exception {

    SimpleObject object = new SimpleObject("id", "Vincent", 1);
    JSONAssert.assertEquals(new String(objectMapper.toJson(object)), "{\"name\":\"Vincent\",\"number\":1, \"another\": null, \"id\": \"id\"}", false);
}