public static void testEqualityWithDnsRoundRobin() throws UnknownHostException {
IpAddress x1, x2, x3;
StackType type=Util.getIpStackType();
String tmp=type == StackType.IPv6? "::1" : "127.0.0.1";
InetAddress addr=InetAddress.getByName(tmp);
byte[] rawAddr=addr.getAddress();
InetAddress inet1=InetAddress.getByAddress("MyHost1", rawAddr);
InetAddress inet2=InetAddress.getByAddress("MyHost2", rawAddr);
InetAddress inet3=InetAddress.getByAddress("MyHost3", rawAddr);
Assert.assertEquals(inet1, inet2);
x1=new IpAddress(inet1, 5555);
x2=new IpAddress(inet2, 5555);
x3=new IpAddress(inet3, 5555);