@Test
public void testObjectMapperIsConfigured() throws IOException {

    JsonBean expBean = new JsonBean();
    expBean.setName("test");
    expBean.setAge(42);
    ObjectMapper mapper = ServiceFactory.getObjectMapper();
    assertThat(mapper).isNotNull();
    JsonBean bean = mapper.readValue(getClass().getResource("/testPerson.json"), JsonBean.class);
    assertThat(bean).isEqualTo(expBean);
}