Enable headless mode during unit tests. There is no need to start AWT. This works around a thread leak during unit tests on OSX.