Index: trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java	(revision 14482)
+++ trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java	(revision 14484)
@@ -52,5 +52,5 @@
     @Rule
     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
-    public JOSMTestRules test = new JOSMTestRules().projection();
+    public JOSMTestRules test = new JOSMTestRules().projection().territories();
 
     static MapCSSTagChecker buildTagChecker(String css) throws ParseException {
@@ -191,4 +191,20 @@
 
     /**
+     * Checks that assertions work for country-specific checks.
+     * @throws ParseException if a parsing error occurs
+     */
+    @Test
+    public void testAssertInsideCountry() throws ParseException {
+        final MapCSSTagChecker test = buildTagChecker(
+                "node[amenity=parking][inside(\"BR\")] {\n" +
+                "  throwWarning: \"foo\";\n" +
+                "  assertMatch: \"node amenity=parking\";\n" +
+                "  assertNoMatch: \"node amenity=restaurant\";\n" +
+                "}");
+        Set<String> errors = test.checkAsserts(test.checks.get("test"));
+        assertTrue(errors.toString(), errors.isEmpty());
+    }
+
+    /**
      * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/13762">Bug #13762</a>.
      * @throws ParseException if a parsing error occurs
