private int countTemporaryFiles() {
        //TODO: fix this.  This can prevent multiple parallel builds
        //from running at the same time because there can be more than one
        //process writing to apache-tika-*
        return Objects.requireNonNull(new File(System.getProperty("java.io.tmpdir"))
                .listFiles((dir, name) -> name.startsWith("apache-tika-"))).length;
    }
Check that temporary files created by Tika are removed after
closing TikaInputStream.
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/detect/TestContainerAwareDetector.java