public static ImmutableSet<HttpUrl> allSubPaths(String url) {
    return allSubPaths(HttpUrl.parse(url));
  }
@Test
  public void allSubPaths_whenInvalidUrl_returnsEmptyList() {
    assertThat(allSubPaths("invalid_url")).isEmpty();
  }