for (H2HTestData testData : versions) {
parameters.setVersionKey(testData.getVersionKey()).setData(testData);
node.getDataManager().putUnblocked(parameters).awaitUninterruptibly();
}
FutureDigest futureDigest = node.getDataManager().getDigestUnblocked(parameters);
futureDigest.awaitUninterruptibly();
assertEquals(H2HConstants.MAX_VERSIONS_HISTORY, futureDigest.getDigest().keyDigest().size());
int i = 0;
for (Number160 storedVersion : futureDigest.getDigest().keyDigest().values()) {
assertEquals(newerVersions.get(i++).getVersionKey(), storedVersion);
}
}