@Test
public void createLoggerTail() throws Exception
{

    this.mocker.registerMockComponent(SafeXStream.class);
    File logFile = new File(XWikiTempDirUtil.createTemporaryDirectory(), "log");
    assertTrue(
        !(this.loggerManager.createLoggerTail(logFile.toPath(), true) instanceof XStreamFileLoggerTail));
    assertTrue(this.loggerManager.createLoggerTail(logFile.toPath(), false) instanceof XStreamFileLoggerTail);
    assertTrue(this.loggerManager.createLoggerTail(logFile.toPath(), true) instanceof XStreamFileLoggerTail);
}