// Test
final AtomicLong watcherEventOccurredTime = new AtomicLong(0L);
final AtomicInteger watcherEventOccurredCount = new AtomicInteger(0);
final AtomicLong fileWrittenTime = new AtomicLong(0L);
DefaultRecursiveWatcher watcher = new DefaultRecursiveWatcher(Paths.get(tempDir.getAbsolutePath()), new ArrayList<Path>(), 300, new WatchListener() {
@Override
public void watchEventsOccurred() {
watcherEventOccurredCount.addAndGet(1);
watcherEventOccurredTime.set(System.currentTimeMillis());
}