@Test
    public void testSkip() throws IOException {
        final int tailSize = 128;
        final int count = 1024;
        final int skipCount = 512;
        TailStream stream = new TailStream(generateStream(0, count), tailSize);
        assertEquals(skipCount, stream.skip(skipCount), "Wrong skip result");
        assertEquals(generateText(skipCount - tailSize, tailSize),
                new String(stream.getTail(), UTF_8), "Wrong buffer");
        stream.close();
    }
Tests whether skip() also fills the tail buffer.
tika-core/src/test/java/org/apache/tika/io/TailStreamTest.java