@Test
public void testTailBufferPartlyRead() throws IOException
{

    final int count = 64;
    TailStream stream = new TailStream(generateStream(0, count), 2 * count);
    byte[] data = readStream(stream);
    assertTrue("Wrong content", Arrays.equals(data, stream.getTail()));
    stream.close();
}