H2HTestData data = new H2HTestData(NetworkTestUtil.randomString());
data.generateVersionKey();
if (i > 0) {
data.setBasedOnKey(content.get(i - 1).getVersionKey());
}
Parameters parameters = new Parameters().setLocationKey(locationKey).setContentKey(contentKey)
.setVersionKey(data.getVersionKey()).setData(data);
nodeA.getDataManager().putUnblocked(parameters).awaitUninterruptibly();
content.add(data);
}
boolean success = nodeB.getDataManager().remove(
new Parameters().setLocationKey(locationKey).setContentKey(contentKey));
assertTrue(success);
for (H2HTestData data : content) {
Parameters parameters = new Parameters().setLocationKey(locationKey).setContentKey(contentKey)
.setVersionKey(data.getVersionKey()).setData(data);
FutureGet futureGet = nodeA.getDataManager().getVersionUnblocked(parameters);
futureGet.awaitUninterruptibly();
assertNull(futureGet.getData());
}