@Test
    public void testSkipEOS() throws IOException {
        final int count = 128;
        TailStream stream = new TailStream(generateStream(0, count), 2 * count);
        assertEquals(count, stream.skip(2 * count), "Wrong skip result");
        assertEquals(generateText(0, count), new String(stream.getTail(), UTF_8),
                "Wrong buffer");
        stream.close();
    }
Tests a skip operation at the end of the stream.
tika-core/src/test/java/org/apache/tika/io/TailStreamTest.java