@Override
    public void includePattern(String[] regexp) {
        if (regexp != null && regexp.length > 0) {
            INCPTRN = regexp;
            this.PTRNFILTER = true;
            // now we create the compiled pattern and
            // add it to the arraylist
            for (String includePattern : INCPTRN) {
                this.INCPATTERNS.add(this.createPattern(includePattern));
                this.includePatternStrings.add(includePattern);
            }
        }
    }
@Test
    public void testIncludePattern() {
        testf.includePattern(PATTERNS);
        for (TestData td : TESTDATA) {
            String theFile = td.file;
            boolean expect = td.inclpatt;

            assertPrimitiveEquals(!expect, testf.isFiltered(theFile, null));
            String line = testf.filter(theFile);
            if (line != null) {
                assertTrue(expect, "Expect to accept " + theFile);
            } else {
                assertFalse(expect, "Expect to reject " + theFile);
            }
        }
    }