@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("Wrong skip result", skipCount, stream.skip(skipCount));
    assertEquals("Wrong buffer",
            generateText(skipCount - tailSize, tailSize),
            new String(stream.getTail(), UTF_8));
    stream.close();
}