@Test public void usernameAndPassword() throws Exception {

  assertEquals(HttpUrl.parse("http://username:password@host/path"),
      HttpUrl.parse("http://username:password@host/path"));
  assertEquals(HttpUrl.parse("http://username@host/path"),
      HttpUrl.parse("http://username:@host/path"));
}