Index: /trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java
===================================================================
--- /trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java	(revision 12183)
+++ /trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java	(revision 12184)
@@ -10,5 +10,5 @@
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
-import java.util.List;
+import java.util.ArrayList;
 
 import org.junit.Test;
@@ -51,5 +51,5 @@
         assertEquals(903, result.getWaypoints().size());
 
-        final WayPoint tenthWayPoint = ((List<WayPoint>) result.waypoints).get(10);
+        final WayPoint tenthWayPoint = new ArrayList<>(result.getWaypoints()).get(10);
         assertEquals("128970", tenthWayPoint.get(GpxData.GPX_NAME));
         assertEquals(new LatLon(48.183956146240234, 11.43463134765625), tenthWayPoint.getCoor());
