JBossContextProvider implements ContextProvider { @Override public String get(final String key) { Object value = MDC.get(key); return value == null ? null : value.toString(); } JBossContextProvider(); @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 getMissingValue() { String value = new JBossContextProvider().get("test"); assertThat(value).isNull(); }