@Test
    public void testStreamNotClosed() throws Exception {
        InputStream input = getResourceAsStream("/test-documents/testKeynote.key");
        Metadata metadata = new Metadata();
        ContentHandler handler = new BodyContentHandler();
        iWorkParser.parse(input, handler, metadata, new ParseContext());
        input.read();   // Will throw an Exception if the stream was already closed.
    }
Check the given InputStream is not closed by the Parser (TIKA-1117).

@throws Exception
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-apple-module/src/test/java/org/apache/tika/parser/iwork/IWorkParserTest.java