ThreadContext { public static Map<String, String> getMapping() { return provider.getMapping(); } private  ThreadContext(); static Map<String, String> getMapping(); static String get(final String key); static void put(final String key, final Object value); static void remove(final String key); static void clear();  }
@Test public void getMapping() { when(provider.getMapping()).thenReturn(doubletonMap("e", "2.71", "pi", "3.14")); assertThat(ThreadContext.getMapping()).containsExactly(entry("e", "2.71"), entry("pi", "3.14")); }