@Test
@Repeat(times = 10000, threads = 4)
public void safePutCloseable() {

  try (MDCCloseable ignored = MDCUtil.safePutCloseable("foo", "bar")) {
    assertThat(MDC.get("foo"), is("bar"));
  }
  assertThat(MDC.get("foo"), is(nullValue()));
}