@Test public void ipOrNull_invalid() {

  assertThat(IpLiteral.ipOrNull("ahola")).isNull();
  assertThat(IpLiteral.ipOrNull("/43.0.292.2")).isNull();
  assertThat(IpLiteral.ipOrNull("43.0.292.2")).isNull();
  assertThat(IpLiteral.ipOrNull("::0000:43.0.192.302")).isNull();
  assertThat(IpLiteral.ipOrNull("200000:43.0.192.202")).isNull();
  assertThat(IpLiteral.ipOrNull("2001:db8::,c001")).isNull();
  assertThat(IpLiteral.ipOrNull("2001db8c001")).isNull();
}