@Test
    public void testWaypointEmpty() throws IOException, ParserException {
        final String geocode = "GC31J2H";
        try {
            final int cacheResource = R.raw.gc31j2h;
            final Geocache cache = CgeoTestUtils.loadCacheFromResource(cacheResource);
            final Waypoint waypoint = new Waypoint("WP", WaypointType.FINAL, false);
            waypoint.setOriginalCoordsEmpty(true);
            cache.addOrChangeWaypoint(waypoint, true);

            final String gpxFromCache = getGPXFromCache(geocode);
            assertThat(gpxFromCache).contains("<sym>Final Location</sym>").contains("<type>Waypoint|Final Location</type>");
            assertThat(gpxFromCache).contains("<cgeo:originalCoordsEmpty>true</cgeo:originalCoordsEmpty>");
        } finally {
            DataStore.removeCache(geocode, LoadFlags.REMOVE_ALL);
        }
    }
This test verifies that a loop of import, export, import leads to the same cache information.
main/src/androidTest/java/cgeo/geocaching/export/GpxSerializerTest.java