Index: trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java	(revision 15233)
+++ trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java	(revision 15239)
@@ -7,4 +7,5 @@
 
 import java.awt.GraphicsEnvironment;
+import java.awt.HeadlessException;
 import java.util.Arrays;
 import java.util.Collection;
@@ -54,4 +55,5 @@
 
         Map<String, Throwable> loadingExceptions = PluginHandler.pluginLoadingExceptions.entrySet().stream()
+                .filter(e -> !(e.getValue() instanceof HeadlessException))
                 .collect(Collectors.toMap(e -> e.getKey(), e -> ExceptionUtils.getRootCause(e.getValue())));
 
