Index: /trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactoryTest.java
===================================================================
--- /trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactoryTest.java	(revision 17773)
+++ /trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactoryTest.java	(revision 17774)
@@ -15,4 +15,5 @@
 
 import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
 
 /**
@@ -52,4 +53,7 @@
     void testAllPseudoClassesRegistered() {
         for (Method method : PseudoClasses.class.getDeclaredMethods()) {
+            if (!Modifier.isPublic(method.getModifiers()) || method.toString().contains("$jacocoInit")) {
+                return;
+            }
             String name = method.getName().replaceFirst("^_new$", "new");
             Context context = name.equals("sameTags") ? Context.LINK : Context.PRIMITIVE;
