1 package org.slf4j.helpers; 2 3 import static org.junit.Assert.assertFalse; 4 import static org.junit.Assert.assertNull; 5 6 import org.junit.Test; 7 8 public class BasicMDCAdapterTest extends MDCAdapterTestBase { 9 10 @Test 11 public void testClearingMDC() { 12 mdc.put("testKey", "testValue"); 13 assertFalse(mdc.getCopyOfContextMap().isEmpty()); 14 mdc.clear(); 15 assertNull(mdc.getCopyOfContextMap()); 16 } 17 }