@Override
    public boolean isCandidateFile(String fileName, String absFilePath) {
      boolean isTestFile = fileName.startsWith("Test") || fileName.startsWith("IntegrationTest");
      return isTestFile && !hadoopCompactRe.matcher(absFilePath).find();
    }
Filters both test classes and anything in the hadoop-compat modules
hbase-common/src/test/java/org/apache/hadoop/hbase/ClassTestFinder.java