JBossContextProvider implements ContextProvider { @Override public void clear() { MDC.clear(); } 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 clear() { MDC.put("a", 1); MDC.put("b", 2); new JBossContextProvider().clear(); assertThat(MDC.getMap()).isEmpty(); }