package test.thread;

import java.util.HashMap;
import java.util.Map;

public class Helper {
  private static Map<String, Map<Long, Long>> m_maps = new HashMap<>();

  public static Map<Long, Long> getMap(String className) {
    synchronized(m_maps) {
      Map<Long, Long> result = m_maps.get(className);
      if (result == null) {
        result = new HashMap();
        m_maps.put(className, result);
      }
      return result;
    }
//    System.out.println("Putting class:" + className + " result:" + result);

  }

  public static void reset() {
    m_maps = new HashMap<>();
  }
}

@@ -17,16 +17,47 @@
 ead;%0D%0A%0D%0A
+import java.util.Collections;%0D%0A
 import j
@@ -391,20 +391,61 @@
 t = 
-new HashMap(
+Collections.synchronizedMap(new HashMap%3CLong, Long%3E()
 );%0D%0A

Fix ParallelTestTest