@Test
public void shouldNotCreateAnObjectMapperButUseTheCustomOn(){

    ObjectMapper mockObjectMapper = mock(ObjectMapper.class);
    when(mockCRestConfig.get(JacksonFactoryTest.class.getName() + JacksonFactory.JACKSON_OBJECT_MAPPER)).thenReturn(mockObjectMapper);
    ObjectMapper actual = JacksonFactory.createObjectMapper(mockCRestConfig, getClass());
    assertEquals(mockObjectMapper, actual);
}