title: FasterXML ObjectMapper is not working with ExecutorService in a Junit test
body: <p>It is a very strange issue. Removing the JSON in TestUtil or the executorService/submit will make the following code working:</p>
  <pre><code>import org.junit.jupiter.api.AfterAll;
  import org.junit.jupiter.api.BeforeAll;
  import org.junit.jupiter.api.Test;
  import org.junit.jupiter.api.TestInfo;
  import java.util.concurrent.ExecutorService;
  import java.util.concurrent.Executors;
  
      public class ATest {
      
          @BeforeAll
          public static void setup(TestInfo test) throws Exception {
          }
      
          @Test
          void testThis(){
              int numThreads = 1;
              ExecutorService threadPool = Executors.newFixedThreadPool(numThreads);
              threadPool.submit(() -&gt; {
                  TestUtils.doSomething();
              });
          }
      }
  </code></pre>
  <p>Here is the class with the ObjectMapper&gt;</p>
  <pre><code>import com.fasterxml.jackson.databind.ObjectMapper;
  
  public class TestUtils {
  
      private static final ObjectMapper JSON;
  
      static {
          JSON = new ObjectMapper();
      }
  
      public static void doSomething() {
          System.out.println(&quot;entered the method&quot;);
      }
  }
  </code></pre>
  <p>Currently, the method doSomething() would not be entered at all.</p>