@Test
    public void testEmptyStream() throws IOException {
        InputStream stream = new ByteArrayInputStream(new byte[0]);
        InputStream lookahead = new LookaheadInputStream(stream, 100);
        assertEquals(-1, lookahead.read());
        lookahead.close();
        assertEquals(-1, stream.read());
    }
Test cases for the {@link LookaheadInputStream} class.
tika-core/src/test/java/org/apache/tika/io/LookaheadInputStreamTest.java