@Test
public void testTailBeforeRead() throws IOException
{

    TailStream stream = new TailStream(generateStream(0, 100), 50);
    assertEquals("Wrong buffer length", 0, stream.getTail().length);
    stream.close();
}