@Test public void parseAuthoritySlashCountDoesntMatter() throws Exception {

  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:/host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:\\host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http://host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:\\/host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:/\\host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:\\\\host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:///host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:\\//host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:/\\/host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http://\\host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:\\\\/host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:/\\\\host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:\\\\\\host/path"));
  assertEquals(HttpUrl.parse("http://host/path"), HttpUrl.parse("http:////host/path"));
}