c.create();
head = mk.getHeadRevision();
String json = JsopBuilder.prettyPrint(mk.getNodes("/test" + i, head, Integer.MAX_VALUE, 0, -1, null));
NodeImpl n = NodeImpl.parse(json);
long count = count(n);
JsopObject o = (JsopObject) Jsop.parse(json);
Object d = o.get(NodeImpl.DESCENDANT_COUNT);
if (d != null) {
long descendants = Long.parseLong(d.toString());
if (count != descendants) {
assertEquals(json, count, descendants + 1);
}
d = o.get(NodeImpl.DESCENDANT_INLINE_COUNT);
long inline = Long.parseLong(d.toString());
if (inline <= 0) {
// at least 1
assertEquals(json, 1, inline);
}