UtilsReplication.perfectRouting(peers);
RoutingConfiguration r = new RoutingConfiguration(6, 10, 2);
RequestP2PConfiguration p = new RequestP2PConfiguration(6, 10, 0);
FuturePut fp = peers[5].put(Number160.MAX_VALUE).routingConfiguration(r).requestP2PConfiguration(p).data(new Data("test")).start();
fp.awaitUninterruptibly();
//now it is stored on 6 peers: 0, 1 , 2, 4, 5, 8
for(PeerDHT p1:peers) {
System.err.println(p1.peer().peerAddress()+":"+p1.storageLayer().get());
}
checkIfPresent(peers, 0, 1 , 2, 4, 5, 8);