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

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