assertTrue(comparator.compare(res("Z"), res("a")) > 0);
}
@Test
public void fallbackToIP() throws Exception {
Object ip1 = new InetAddressHolder(InetAddress.getByName("127.0.0.25"));
Object ip2 = new InetAddressHolder(InetAddress.getByName("127.0.0.30"));
Object ip3 = new InetAddressHolder(InetAddress.getByName("128.0.0.25"));
comparator.byIndex(1, true);
assertTrue(comparator.compare(res(ip1, "a"), res(ip1, "A")) == 0);
assertTrue(comparator.compare(res(ip1, "a"), res(ip2, "a")) < 0);
assertTrue(comparator.compare(res(ip3, "a"), res(ip2, "a")) > 0);