Index: trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java	(revision 12521)
+++ trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java	(revision 12545)
@@ -27,4 +27,5 @@
 import org.openstreetmap.josm.tools.Logging;
 import org.openstreetmap.josm.tools.MemoryManagerTest;
+import org.openstreetmap.josm.tools.Territories;
 import org.openstreetmap.josm.tools.date.DateUtils;
 
@@ -51,4 +52,5 @@
     private boolean useMapStyles;
     private boolean useHttps;
+    private boolean territories;
 
     /**
@@ -156,7 +158,7 @@
 
     /**
-      * Allow the execution of commands using {@link Main#undoRedo}
-      * @return this instance, for easy chaining
-      */
+     * Allow the execution of commands using {@link Main#undoRedo}
+     * @return this instance, for easy chaining
+     */
     public JOSMTestRules commands() {
         commands = true;
@@ -181,4 +183,14 @@
         preferences();
         useMapStyles = true;
+        return this;
+    }
+
+    /**
+     * Use boundaries dataset in this test.
+     * @return this instance, for easy chaining
+     * @since 12545
+     */
+    public JOSMTestRules territories() {
+        territories = true;
         return this;
     }
@@ -274,4 +286,8 @@
             // Reset the map paint styles.
             MapPaintStyles.readFromPreferences();
+        }
+
+        if (territories) {
+            Territories.initialize();
         }
 
Index: trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTest.java	(revision 12521)
+++ trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTest.java	(revision 12545)
@@ -21,5 +21,5 @@
     @Rule
     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
-    public JOSMTestRules rules = new JOSMTestRules().platform().projection().commands();
+    public JOSMTestRules rules = new JOSMTestRules().platform().projection().territories();
 
     /**
