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