public void testRouting() throws Exception {
TestUdpSocketManager usm = new TestUdpSocketManager(-1);
RoutingTable rt = new RoutingTable(100, usm, null, false);
Peer p = new Peer(InetAddress.getByAddress(new byte[]{5, 6, 7, 8}), 105);
rt.joinSeed(p);
assertEquals(p, usm._sentPeers.get(0));
}
public static class TestUdpSocketManager extends UdpSocketManager {