@Test
void getDeleteLog() throws IOException
{

    this.tail.initialize(new File(this.tmpDir, "log").toPath(), false);
    this.tail.info("info");
    this.tail.close();
    this.tail.initialize(new File(this.tmpDir, "log").toPath(), true);
    assertEquals("info", this.tail.getLogEvent(0).getMessage());
    this.tail.logFile.delete();
    assertNull(this.tail.getLogEvent(0));
}