NopContextProvider implements ContextProvider { @Override public void put(final String key, final Object value) { } NopContextProvider(); @Override Map<String, String> getMapping(); @Override String get(final String key); @Override void put(final String key, final Object value); @Override void remove(final String key); @Override void clear();  }
@Test public void put() { provider.put("abc", "123"); assertThat(provider.getMapping()).isEmpty(); }