@Test
public void should_deserialize_json() throws Exception {

    String json = "{\"name\": \"colin\", \"number\": 31}";
    SimpleObject object = objectMapper.fromJson(json.getBytes(StandardCharsets.UTF_8), SimpleObject.class);
    assertThat(object.getName()).isEqualTo("colin");
    assertThat(object.getNumber()).isEqualTo(31);
}