private void createCache() {
        this.cache = CgeoTestUtils.createTestCache();
        this.cache.setGeocode("TEST" + cacheIdSupplier.incrementAndGet());
        if (modifier != null) {
            modifier.accept(this.cache);
        }
        DataStore.saveCache(this.cache, Collections.singleton(LoadFlags.SaveFlag.CACHE));
    }
Sets up a (temporary) cache in Cgeo for testing purposes
main/src/androidTest/java/cgeo/geocaching/test/CgeoTemporaryCacheRule.java