@Test
void getFirstLogEvent() throws IOException
{

    this.tail.initialize(new File(this.tmpDir, "log").toPath(), false);
    assertNull(this.tail.getFirstLogEvent());
    assertNull(this.tail.getFirstLogEvent(LogLevel.ERROR));
    this.tail.info("info0");
    this.tail.info("info1");
    this.tail.warn("warn0");
    this.tail.warn("warn1");
    this.tail.error("error0");
    this.tail.error("error1");
    assertEquals("info0", this.tail.getFirstLogEvent().getMessage());
    assertEquals("info0", this.tail.getFirstLogEvent(LogLevel.TRACE).getMessage());
    assertEquals("info0", this.tail.getFirstLogEvent(LogLevel.INFO).getMessage());
    assertEquals("warn0", this.tail.getFirstLogEvent(LogLevel.WARN).getMessage());
    assertEquals("error0", this.tail.getFirstLogEvent(LogLevel.ERROR).getMessage());
}