@MediumTest
    @Test
    public void testSearchByOwner() {

        final OwnerGeocacheFilter ownerFilter = (OwnerGeocacheFilter) GeocacheFilterType.OWNER.create();
        ownerFilter.getStringFilter().setTextValue("Lineflyer");

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

        assertThat(search).isNotNull();
        assertThat(search.getGeocodes().size()).isGreaterThanOrEqualTo(20);
        assertThat(search.getGeocodes()).contains("GC8TGJ6");

    }
mock the "exclude disabled caches" and "exclude my caches" options for the execution of the runnable
main/src/androidTest/java/cgeo/geocaching/CgeoApplicationTest.java