@Test public void testObjectMapperIsCached() { ObjectMapper mapper1 = ServiceFactory.getObjectMapper(); ObjectMapper mapper2 = ServiceFactory.getObjectMapper(); assertThat(mapper2).isSameAs(mapper1); }
public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; }
ServiceFactory { public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; } }
ServiceFactory { public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; } ServiceFactory();   ServiceFactory(HttpClientFactory httpClientFactory); }
ServiceFactory { public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; } ServiceFactory();   ServiceFactory(HttpClientFactory httpClientFactory); static ObjectMapper getObjectMapper(); HttpClient createHttpClient(boolean useProxy, String proxyHost, int proxyPort); }
ServiceFactory { public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; } ServiceFactory();   ServiceFactory(HttpClientFactory httpClientFactory); static ObjectMapper getObjectMapper(); HttpClient createHttpClient(boolean useProxy, String proxyHost, int proxyPort);  }