private void deleteList() {
        if (temporaryListId == Integer.MIN_VALUE) {
            return;
        }
        final SearchResult search = DataStore.getBatchOfStoredCaches(null, temporaryListId);
        assertThat(search).isNotNull();
        DataStore.removeCaches(search.getGeocodes(), LoadFlags.REMOVE_ALL);
        DataStore.removeList(temporaryListId);
    }
Sets up a (temporary) cache list in Cgeo for testing purposes
main/src/androidTest/java/cgeo/geocaching/test/CgeoTemporaryListRule.java