001package org.slf4j.helpers;
002
003import static org.junit.Assert.assertFalse;
004import static org.junit.Assert.assertNull;
005
006import org.junit.Test;
007
008public class BasicMDCAdapterTest extends MDCAdapterTestBase {
009
010    @Test
011    public void testClearingMDC() {
012        mdc.put("testKey", "testValue");
013        assertFalse(mdc.getCopyOfContextMap().isEmpty());
014        mdc.clear();
015        assertNull(mdc.getCopyOfContextMap());
016    }
017}