@Test
@Repeat(times = 10000, threads = 4)
public void withMDCCallable() throws ExecutionException, InterruptedException {

  MDC.put("foo", "bar");
  final String value = EXECUTOR_SERVICE.submit(withMDC(() -> MDC.get("foo"))).get();
  assertThat(value, is("bar"));
}