@Test
public void hostIpv6WithMalformedIpv4Suffix() throws Exception {

    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:0:1:0.0:0.0]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:0:1:0.0-0.0]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:0:1:.255.255.255]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:0:1:255..255.255]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:0:1:255.255..255]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:0:0:1:255.255]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:0:1:256.255.255.255]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:0:1:ff.255.255.255]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:0:0:1:255.255.255.255]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:1:255.255.255.255]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0:0:0:1:0.0.0.0:1]/"));
    assertEquals(null, HttpUrl.parse("http://[0:0.0.0.0:1:0:0:0:0:1]/"));
    assertEquals(null, HttpUrl.parse("http://[0.0.0.0:0:0:0:0:0:1]/"));
}