private static String getGPXFromCache(final String geocode) throws IOException {
        final StringWriter writer = new StringWriter();
        new GpxSerializer().writeGPX(Collections.singletonList(geocode), writer, null);
        return writer.toString();
    }
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