@Test
public void testMultithreadedExecNoDependencies() throws InterruptedException {

    Assume.assumeTrue(shouldRunMaven);
    int executionsNum = 5;
    final CountDownLatch latch = new CountDownLatch(executionsNum);
    for(int i = 0; i < executionsNum; i++) {
        final String executioId = String.valueOf(i);
        new Thread() {
            public void run() {
                try {
                    String script = MessageFormat.format(EXECUTION_SCRIPT, executioId, executioId);
                    PythonExecutionResult result = pythonRuntimeService.exec(Collections.<String>emptySet(), script, EMPTY_CALL_ARGUMENTS);
                    assertNotNull(result);
                    assertEquals(executioId, result.getExecutionResult().get(VAR1).toString());
                    assertEquals(executioId, result.getExecutionResult().get(VAR2).toString());
                } finally {
                    latch.countDown();
                }
            }
        }.start();
    }
    latch.await();
}