@Test
public void warn() throws IOException {

    SynchronizingSelfLog.warn("test warn");
    SynchronizingSelfLog.flush();
    File log = customFileLog("sync.log");
    List<String> logs = FileUtils.readLines(log);
    assertTrue(logs.toString(), logs.get(0).contains("[WARN]"));
    assertTrue(logs.toString(), logs.get(0).contains("test warn"));
}