for (String rev : revs) {
String n = mk.getNodes("/test", rev, 1, 0, -1, null);
NodeImpl node = NodeImpl.parse(n);
assertEquals(i, Integer.parseInt(node.getProperty("id")));
String journal = mk.getJournal(last, rev, null);
JsopArray array = (JsopArray) Jsop.parse(journal);
assertEquals(last + ".." + rev + ": " + journal,
2, array.size());
JsopObject obj = (JsopObject) array.get(0);
assertEquals("\"" + (i - 1) + "\"", obj.get("msg"));
obj = (JsopObject) array.get(1);
assertEquals("\"" + i + "\"", obj.get("msg"));
last = rev;
i++;
}
}