@Test
    public void testDTNumbersAreIntegers() throws IOException, ParserException {
        final int cacheResource = R.raw.gc31j2h;
        CgeoTestUtils.loadCacheFromResource(cacheResource);

        final String exported = getGPXFromCache("GC31J2H");
        final String imported = IOUtils.toString(CgeoTestUtils.getResourceStream(R.raw.gc31j2h), StandardCharsets.UTF_8);
        assertEqualTags(imported, exported, "groundspeak:difficulty");
        assertEqualTags(imported, exported, "groundspeak:terrain");
    }
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