final Number160 contentKey = Number160.ZERO;
Number640 key = new Number640(locationKey, domainKey, contentKey, Number160.ZERO);
final String newValue = "TomP2P 5 is around the corner with several new additions. One of the larger changes is the support for relays as described here. Check out the latest alpha version.";
final String oldValue = "TomP2P 5 is around the corner with several new additions! One of the larger changes is the support for relays as described here. Check out the latest alpha version.";
Data test1 = new Data(newValue.getBytes());
Data test2 = new Data(oldValue.getBytes());
sender.put(locationKey).data(test1).start().awaitUninterruptibly();
receiver.put(locationKey).data(test2).start().awaitUninterruptibly();
FutureDone<SyncStat> future = senderSync.synchronize(receiver.peerAddress()).key(key)
.start();
future.awaitUninterruptibly();
System.err.println(future.object().toString());
Data data = receiver.storageLayer()
.get(new Number640(locationKey, domainKey, contentKey, Number160.ZERO));
byte[] reconstructedValue = data.toBytes();
assertArrayEquals(newValue.getBytes(), reconstructedValue);
Assert.assertEquals(164, ((SyncStat)future.object()).dataOrig());
Assert.assertEquals(56, ((SyncStat)future.object()).dataCopy());
} finally {