Index: trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTaskTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTaskTest.java	(revision 8905)
+++ trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTaskTest.java	(revision 8908)
@@ -3,4 +3,5 @@
 
 import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 
@@ -10,4 +11,5 @@
 import org.junit.Test;
 import org.openstreetmap.josm.JOSMFixture;
+import org.openstreetmap.josm.data.gpx.GpxData;
 
 /**
@@ -51,4 +53,8 @@
         DownloadGpsTask task = new DownloadGpsTask();
         task.loadUrl(false, REMOTE_FILE, null).get();
+        GpxData data = task.getDownloadedData();
+        assertNotNull(data);
+        assertFalse(data.waypoints.isEmpty());
+        assertFalse(data.tracks.isEmpty());
     }
 }
Index: trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesTaskTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesTaskTest.java	(revision 8908)
+++ trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesTaskTest.java	(revision 8908)
@@ -0,0 +1,58 @@
+// License: GPL. For details, see LICENSE file.
+package org.openstreetmap.josm.actions.downloadtasks;
+
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+import java.util.concurrent.ExecutionException;
+
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.openstreetmap.josm.JOSMFixture;
+import org.openstreetmap.josm.data.osm.NoteData;
+
+/**
+ * Unit tests for class {@link DownloadNotesTask}.
+ */
+public class DownloadNotesTaskTest {
+
+    private static final String REMOTE_FILE = "https://josm.openstreetmap.de/export/head/josm/trunk/test/data/planet-notes-extract.osn";
+
+    /**
+     * Setup test.
+     */
+    @BeforeClass
+    public static void setUp() {
+        JOSMFixture.createUnitTestFixture().init();
+    }
+
+    /**
+     * Unit test of {@code DownloadNotesTask#acceptsUrl} method.
+     */
+    @Test
+    public void testAcceptsURL() {
+        DownloadNotesTask task = new DownloadNotesTask();
+        assertFalse(task.acceptsUrl(null));
+        assertFalse(task.acceptsUrl(""));
+        assertTrue(task.acceptsUrl("http://api.openstreetmap.org/api/0.6/notes?bbox=-0.65094,51.312159,0.374908,51.669148"));
+        assertTrue(task.acceptsUrl("http://api.openstreetmap.org/api/0.6/notes.json?bbox=-0.65094,51.312159,0.374908,51.669148"));
+        assertTrue(task.acceptsUrl("http://api.openstreetmap.org/api/0.6/notes.xml?bbox=-0.65094,51.312159,0.374908,51.669148"));
+        assertTrue(task.acceptsUrl("http://api.openstreetmap.org/api/0.6/notes.gpx?bbox=-0.65094,51.312159,0.374908,51.669148"));
+        assertTrue(task.acceptsUrl(REMOTE_FILE));
+    }
+
+    /**
+     * Unit test of {@code DownloadNotesTask#loadUrl} method with an external file.
+     * @throws ExecutionException if the computation threw an exception
+     * @throws InterruptedException if the current thread was interrupted while waiting
+     */
+    @Test
+    public void testDownloadExternalFile() throws InterruptedException, ExecutionException {
+        DownloadNotesTask task = new DownloadNotesTask();
+        task.loadUrl(false, REMOTE_FILE, null).get();
+        NoteData data = task.getDownloadedData();
+        assertNotNull(data);
+        assertFalse(data.getNotes().isEmpty());
+    }
+}
Index: trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskTest.java	(revision 8905)
+++ trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskTest.java	(revision 8908)
@@ -3,4 +3,5 @@
 
 import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 
@@ -10,4 +11,5 @@
 import org.junit.Test;
 import org.openstreetmap.josm.JOSMFixture;
+import org.openstreetmap.josm.data.osm.DataSet;
 
 /**
@@ -52,4 +54,8 @@
         DownloadOsmTask task = new DownloadOsmTask();
         task.loadUrl(false, REMOTE_FILE, null).get();
+        DataSet ds = task.getDownloadedData();
+        assertNotNull(ds);
+        assertFalse(ds.getNodes().isEmpty());
+        assertFalse(ds.getWays().isEmpty());
     }
 }
