@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);
  }
Tests for {@link WatchServiceConfiguration}.

@author Colin Decker
jimfs/src/test/java/com/google/common/jimfs/WatchServiceConfigurationTest.java