@Test
    @SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert") // is done in called test method
    public void pattern() {
        testSingle(c -> c.setName("Testname"), f -> {
            f.getStringFilter().setTextValue("Test");
            f.getStringFilter().setFilterType(StringFilter.StringFilterType.PATTERN);
        }, false);
        testSingle(c -> c.setName("Testname"), f -> {
            f.getStringFilter().setTextValue("T?st*");
            f.getStringFilter().setFilterType(StringFilter.StringFilterType.PATTERN);
        }, true);
    }
This class tests the string filters, using NAME filter as an example
main/src/androidTest/java/cgeo/geocaching/filters/StringGeocacheFilterTest.java