@Override
        public void close() throws IOException {
            in.close();
            counter++;
        }
Replaces the underlying input stream with a {@link ClosedInputStream}
sentinel. The original input stream will remain open, but this proxy
will appear closed.
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/parser/RecursiveParserWrapperTest.java