@Test
    public void testUserDefinedCacheEmpty() throws IOException, ParserException {
        final String geocode = "ZZ1000";
        try {
            final int cacheResource = R.raw.zz1000;
            final Geocache cache = CgeoTestUtils.loadCacheFromResource(cacheResource);
            assertThat(cache.getCoords()).isNull();

            final String gpxFromCache = getGPXFromCache(geocode);
            assertThat(gpxFromCache).contains("<wpt lat=\"0.0\" lon=\"0.0\">");
        } 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