### Question:
IPv6 { public byte[] getBytes() throws IPStringConversionException { return IpString2bytes(this.ip); } IPv6();  IPv6(String ip);  IPv6(byte[] in); static int[] splitvals(String ipStr); static int countnegatives(int[] in); static String expand(String ipStr, int nwords); String expand(); static int[] expand(int[] vals, int nwords); static byte[] IpString2bytes(String ipStr); static String bytes2IpString(byte[] in); void setIp(byte[] in); String getString(); byte[] getBytes(); void setIp(String ip);  }### Answer:
@Test public void getBytes() throws IPStringConversionException { IPv6 ip = new IPv6(ipv4Mixed_compressed); assertNotNull("Expected Non null bytes",ip.getBytes()); assertTrue(bytes_match(ip.getBytes(),ipv4Mixed_bytes)); }