public void testHashCode() throws Exception {
   byte data[] = {0, 10, 20, 40, 50};
   InetAddress addr1 = InetAddress.getByAddress(new byte[] {127, 0, 0, 1});
   InetAddress addr2 = InetAddress.getByAddress(new byte[] {127, 0, 0, 2});
   ChannelBinding cb = new ChannelBinding(addr1, addr2, data);
   assertEquals(addr1.hashCode(), cb.hashCode());
 }
 public void testHashCode_2() throws Exception {
   byte data[] = {10, 2};
   ChannelBinding cb = new ChannelBinding(null, null, data);
   assertEquals(312, cb.hashCode());
 }