@Test
    public void testMDCChildThreadCanOverwriteParentThread() throws Exception {
        mdc.put("sharedKey", "parentValue");
        runAndWait(() -> {
            assertEquals("parentValue", mdc.get("sharedKey"));
            mdc.put("sharedKey", "childValue");
            assertEquals("childValue", mdc.get("sharedKey"));
        });
        assertEquals("parentValue", mdc.get("sharedKey"));
    }
Tests for {@link BasicMDCAdapter}

@author Lukasz Cwik
slf4j-api/src/test/java/org/slf4j/helpers/MDCAdapterTestBase.java