@MediumTest
    @Test
    public void testSearchByUsername() {

        final LogEntryGeocacheFilter foundByFilter = (LogEntryGeocacheFilter) GeocacheFilterType.LOG_ENTRY.create();
        foundByFilter.setFoundByUser("blafoo");

        final GeocacheFilter filter = GeocacheFilter.createEmpty().and(foundByFilter);
        final SearchResult search = GCMap.searchByFilter(GCConnector.getInstance(), filter, new GeocacheSort());

        assertThat(search).isNotNull();
        // we cannot check for a specific geocode, as we cannot know which caches 'blafoo' has recently found.
        assertThat(search.getGeocodes().size()).isGreaterThanOrEqualTo(20);
    }
mock the "exclude disabled caches" and "exclude my caches" options for the execution of the runnable
main/src/androidTest/java/cgeo/geocaching/CgeoApplicationTest.java