ObjectMapperProvider implements ContextResolver<ObjectMapper> { @Override public ObjectMapper getContext( Class<?> type ) { return this.mapper; }  @Override ObjectMapper getContext( Class<?> type );  }
@Test public void testGetContext() { ObjectMapperProvider provider = new ObjectMapperProvider(); Assert.assertNotNull( provider.getContext( null )); Assert.assertNotNull( provider.getContext( String.class )); }