// create ADD node itemState
NodeData parent = (NodeData)((NodeImpl)this.root).getData();
QPath ancestorToSave = parent.getQPath();
JCRPath nodePath = session.getLocationFactory().parseRelPath("testNode");
InternalQName primaryType = session.getLocationFactory().parseJCRName("nt:unstructured").getInternalName();
String id = IdGenerator.generate();
TransientNodeData newNode =
new TransientNodeData(nodePath.getInternalPath(), id, -1, primaryType, new InternalQName[0], 0,
((NodeImpl)root).getInternalIdentifier(), ((NodeImpl)root).getACL());
ItemState state = new ItemState(newNode, ItemState.ADDED, false, parent.getQPath());
list.add(state);
// add property
// added big file property
JCRPath propPath = session.getLocationFactory().parseRelPath("bigProp");
File f = this.createBLOBTempFile(1024);
TransientPropertyData newProperty =
new TransientPropertyData(propPath.getInternalPath(), IdGenerator.generate(), -1, PropertyType.BINARY, newNode
.getIdentifier(), false, new TransientValueData(new FileInputStream(f)));
list.add(new ItemState(newProperty, ItemState.ADDED, false, parent.getQPath()));
// crate broken node;