testBuilder.removeNode("a");
rootBuilder.setNode("test", testBuilder.getNodeState());
final NodeState newRoot = rootBuilder.getNodeState();
commitWithEditor(newRoot, new EmptyEditor() {
@Override
public NodeState editCommit(NodeStore store, NodeState before, NodeState after) {
NodeStateBuilder rootBuilder = store.getBuilder(after);
NodeStateBuilder testBuilder = store.getBuilder(after.getChildNode("test"));
testBuilder.setNode("fromHook", MemoryNodeState.EMPTY_NODE);