### Question:
WatchServiceConfiguration { abstract AbstractWatchService newWatchService(FileSystemView view, PathService pathService); WatchServiceConfiguration(); @SuppressWarnings("GoodTime") // should accept a java.time.Duration static WatchServiceConfiguration polling(long interval, TimeUnit timeUnit);  }### Answer:
@Test public void testDefaultConfig() { WatchService watchService = WatchServiceConfiguration.DEFAULT.newWatchService(fs.getDefaultView(), fs.getPathService()); assertThat(watchService).isInstanceOf(PollingWatchService.class); PollingWatchService pollingWatchService = (PollingWatchService) watchService; assertThat(pollingWatchService.interval).isEqualTo(5); assertThat(pollingWatchService.timeUnit).isEqualTo(SECONDS); }