Index: trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java	(revision 19498)
+++ trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java	(revision 19502)
@@ -16,4 +16,6 @@
 import java.util.Collections;
 import java.util.List;
+import java.util.HashMap;
+import java.util.Map;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
@@ -494,4 +496,12 @@
         GpxExtensionCollection col = new GpxExtensionCollection();
         col.add("josm", "from-server", "true");
+        Collection<Collection<WayPoint>> trackSegs1 = new ArrayList<Collection<WayPoint>>();
+        Collection<Collection<WayPoint>> trackSegs2 = new ArrayList<Collection<WayPoint>>();
+        Collection<WayPoint> wps = new ArrayList<WayPoint>();
+        wps.add(new WayPoint(LatLon.SOUTH_POLE));
+        trackSegs2.add(wps);
+        Map<String, Object> attributes1 = new HashMap<String, Object>();
+        Map<String, Object> attributes2 = new HashMap<String, Object>();
+        attributes2.put("test", "test");
         EqualsVerifier.forClass(GpxData.class).usingGetClass()
             .suppress(Warning.NONFINAL_FIELDS)
@@ -501,4 +511,5 @@
             .withPrefabValues(ListenerList.class, ListenerList.create(), ListenerList.create())
             .withPrefabValues(GpxExtensionCollection.class, new GpxExtensionCollection(), col)
+            .withPrefabValues(IGpxTrack.class, new GpxTrack(trackSegs1, attributes1), new GpxTrack(trackSegs2, attributes2))
             .verify();
     }
