@BeforeAll
    public static void setUp() throws Exception {
        Path testOutput = Paths.get("target/test-classes/test-output");
        Files.createDirectories(testOutput);
        OUTPUT_ROOT = Files.createTempDirectory(testOutput, "tika-batch-output-root-");
    }
This is the base class for file-system batch tests.
<p/>
There are a few areas for improvement in this test suite.
<ol>
    <li>For the heavy load tests, the test cases leave behind files that
    cannot be deleted from within the same jvm.  A thread is still actively writing to an
    OutputStream when tearDown() is called.  The current solution is to create
    the temp dir within the target/tika-batch/test-classes so that they will at least
    be removed during each maven &quot;clean&quot;</li>
    <li>The &quot;mock&quot; tests are time-based.  This is not
    extremely reliable across different machines with different number/power of cpus.
    </li>
</ol>
tika-batch/src/test/java/org/apache/tika/batch/fs/FSBatchTestBase.java