NopContextProvider implements ContextProvider { @Override public String get(final String key) { return null; } 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 get() { assertThat(provider.get("abc")).isNull(); assertThat(provider.get(null)).isNull(); }