public BatchProcessDriverCLI getNewDriver(String testConfig, String[] args) throws Exception {
        List<String> commandLine = new ArrayList<>();
        commandLine.add("java");
        commandLine.add("-Djava.awt.headless=true");
        commandLine.add("-Xmx128m");
        commandLine.add("-cp");
        String cp = System.getProperty("java.class.path");
        //need to test for " " on *nix, can't just add double quotes
        //across platforms.
        cp = ProcessUtils.escapeCommandLine(cp);

        commandLine.add(cp);
        commandLine.add("org.apache.tika.batch.fs.FSBatchProcessCLI");

        String configFile = Paths
                .get(getResourceAsUri(testConfig))
                .toAbsolutePath()
                .toString();
        commandLine.add("-bc");

        commandLine.add(configFile);

        commandLine.addAll(Arrays.asList(args));

        BatchProcessDriverCLI driver = new BatchProcessDriverCLI(commandLine.toArray(new String[0]));
        driver.setRedirectForkedProcessToStdOut(false);
        return driver;
    }
helper method equivalent to File#listFiles()
grabs children only, does not walk recursively

@param p
@return
tika-batch/src/test/java/org/apache/tika/batch/fs/FSBatchTestBase.java