### Question:
IPv6Pattern implements InetAddressPattern { boolean isValid() { return valid; } IPv6Pattern(String pattern); boolean isMatching(InetAddress address);  }### Answer:
@Test public void valid_ipv6_pattern_because_not_8_dividers_is_invalid() throws Exception{ IPv6Pattern pattern = new IPv6Pattern("2001:db8:0:0:0:0:*"); assertFalse(pattern.isValid()); }
@Test public void valid_ipv6_pattern_because_number_too_big_is_invalid() throws Exception{ IPv6Pattern pattern = new IPv6Pattern("10000:db8:0:0:0:0:*:*"); assertFalse(pattern.isValid()); }