Strange exception thrown running unit tests

I had the same error, because a test was launching an System.exit 1

the stacktrace is a bit misleading.