@Test
void writeread() throws IOException
{

    this.tail.initialize(new File(this.tmpDir, "log").toPath(), false);
    this.tail.error("error0");
    this.tail.error("error1");
    assertEquals("error0", this.tail.getLogEvent(0).getMessage());
    assertEquals("error1", this.tail.getLogEvent(1).getMessage());
}