public void putVersionConflictTest() throws IOException, NoPeerConnectionException {
NetworkManager node = network.get(random.nextInt(networkSize));
String locationKey = node.getNodeId();
String contentKey = NetworkTestUtil.randomString();
H2HTestData data1 = new H2HTestData(NetworkTestUtil.randomString());
data1.generateVersionKey();
Parameters parameters1 = new Parameters().setLocationKey(locationKey).setContentKey(contentKey)
.setVersionKey(data1.getVersionKey()).setData(data1);
FuturePut futurePut1 = node.getDataManager().putUnblocked(parameters1);
futurePut1.awaitUninterruptibly();
H2HTestData data2 = new H2HTestData(NetworkTestUtil.randomString());
data2.generateVersionKey();
H2HTestData data3 = new H2HTestData(NetworkTestUtil.randomString());
data3.generateVersionKey();
data3.setBasedOnKey(data2.getVersionKey());
Parameters parameters3 = new Parameters().setLocationKey(locationKey).setContentKey(contentKey)
.setVersionKey(data3.getVersionKey()).setData(data3);
FuturePut futurePut3 = node.getDataManager().putUnblocked(parameters3);
futurePut3.awaitUninterruptibly();
assertFalse(futurePut3.getRawResult().isEmpty());
for (PeerAddress peerAddress : futurePut3.getRawResult().keySet()) {