Index: /trunk/test/unit/org/openstreetmap/josm/tools/SearchCompilerQueryWizardTest.java
===================================================================
--- /trunk/test/unit/org/openstreetmap/josm/tools/SearchCompilerQueryWizardTest.java	(revision 16412)
+++ /trunk/test/unit/org/openstreetmap/josm/tools/SearchCompilerQueryWizardTest.java	(revision 16413)
@@ -231,3 +231,12 @@
         constructQuery("-(foo or bar)");
     }
+
+    /**
+     * Test for ticket <a href="https://josm.openstreetmap.de/ticket/19151>#19151</a>
+     */
+    @Test
+    public void testTicket19151() {
+        assertQueryEquals("  relation[\"type\"=\"multipolygon\"][!\"landuse\"][!\"area:highway\"];\n",
+                "type:relation and type=multipolygon and -landuse=* and -\"area:highway\"=*");
+    }
 }
