### Question:
PollingWatchService extends AbstractWatchService { @VisibleForTesting synchronized boolean isPolling() { return pollingFuture != null; } PollingWatchService(
      FileSystemView view,
      PathService pathService,
      FileSystemState fileSystemState,
      long interval,
      TimeUnit timeUnit); @Override Key register(Watchable watchable, Iterable<? extends WatchEvent.Kind<?>> eventTypes); @Override synchronized void cancelled(Key key); @Override void close();  }### Answer:
@Test public void testNewWatcher() { assertThat(watcher.isOpen()).isTrue(); assertThat(watcher.isPolling()).isFalse(); }