@Override
  public Optional<String> getUrlPathToJs() {
    return Optional.ofNullable(analytics)
      .map(WebAnalytics::getUrlPathToJs)
      .filter(path -> !path.startsWith("/") && !path.contains("..") && !path.contains("://"))
      .map(path -> "/" + path);
  }
@Test
  public void return_empty_if_no_analytics_plugin() {
    assertThat(new WebAnalyticsLoaderImpl(null).getUrlPathToJs()).isEmpty();
    assertThat(new WebAnalyticsLoaderImpl(new WebAnalytics[0]).getUrlPathToJs()).isEmpty();
  }