NodeDocument.setRevision(op, r51, "c");
NodeDocument.setPrevious(op, new Range(r42, r12, 0));
NodeDocument.setPrevious(op, new Range(r31, r01, 0));
store.createOrUpdate(NODES, op);
NodeDocument doc = store.find(NODES, rootId);
assertNotNull(doc);
List<NodeDocument> prevDocs = Lists.newArrayList(
doc.getPreviousDocs("p1", null));
assertEquals(2, prevDocs.size());
assertEquals(Utils.getPreviousIdFor(rootPath, r31, 0), prevDocs.get(0).getId());