long afterTimeUsec = (System.currentTimeMillis() + 1) * 1000;
flush(log);
sync(7000);
int retryMax = 1;
AppLogLine logLine = findLogLineContaining(logMark, retryMax);
assertNotNull("log with " + logMark + " should exist.", logLine);
assertTrue("Expected logLine.getTimeUsec (" + logLine.getTimeUsec() + ") >= beforeTimeUsec (" + beforeTimeUsec + "), but it was not", logLine.getTimeUsec() >= beforeTimeUsec);
assertTrue("Expected logLine.getTimeUsec (" + logLine.getTimeUsec() + ") <= afterTimeUsec (" + afterTimeUsec + "), but it was not", logLine.getTimeUsec() <= beforeTimeUsec);
}