public void compareAgainstBaseState100() throws CommitFailedException {
compareAgainstBaseState(KernelNodeState.MAX_CHILD_NODE_NAMES);
}
private void compareAgainstBaseState(int childNodeCount) throws CommitFailedException {
NodeStoreBranch branch = store.branch();
NodeState before = branch.getHead();
NodeBuilder builder = before.builder();
for (int k = 0; k < childNodeCount; k++) {
builder.child("c" + k);
}
builder.child("foo").child(":bar").child("quz").setProperty("p", "v");
branch.setRoot(builder.getNodeState());
branch.merge(EmptyHook.INSTANCE, PostCommitHook.EMPTY);
NodeState after = store.getRoot();
Diff diff = new Diff();
after.compareAgainstBaseState(before, diff);