@Test public void hostContainsIllegalCharacter() throws Exception {

  assertEquals(null, HttpUrl.parse("http://\n/"));
  assertEquals(null, HttpUrl.parse("http:// /"));
  assertEquals(null, HttpUrl.parse("http://%20/"));
}