private static void assertTagValue(final String gpx, final String tag, final String tagValue) {
        final String[] gpxContent = StringUtils.substringsBetween(gpx, "<" + tag + ">", "</" + tag + ">");
        assertThat(gpxContent).isNotEmpty();
        assertThat(gpxContent).hasSize(1);
        assertThat(gpxContent[0]).isEqualTo(tagValue);
    }
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