try {
master = new PeerBuilder(new Number160(rnd)).ports(4001).start();
slave = new PeerBuilder(new Number160(rnd)).ports(4002).start();
FutureDiscover fd = master.discover().peerAddress(slave.peerAddress()).start();
fd.awaitUninterruptibly();
System.err.println(fd.failedReason());
Assert.assertEquals(true, fd.isSuccess());
} finally {
if (master != null) {
master.shutdown().await();
}