*/
Node n1 = testRootNode.addNode(nodeName1, testNodeType);
Node n2 = n1.addNode(nodeName2, testNodeType);
Node n3 = testRootNode.addNode(nodeName3, testNodeType);
testRootNode.save();
EventResult addNodeListener = new EventResult(log);
EventResult removeNodeListener = new EventResult(log);
EventResult moveNodeListener = new EventResult(log);
addEventListener(addNodeListener, Event.NODE_ADDED);
addEventListener(removeNodeListener, Event.NODE_REMOVED);
addEventListener(moveNodeListener, Event.NODE_MOVED);
// move n2
superuser.move(n2.getPath(), n3.getPath() + "/" + nodeName2);
// remove n1
n1.remove();
testRootNode.save();
Event[] added = addNodeListener.getEvents(DEFAULT_WAIT_TIMEOUT);
Event[] removed = removeNodeListener.getEvents(DEFAULT_WAIT_TIMEOUT);
Event[] moved = moveNodeListener.getEvents(DEFAULT_WAIT_TIMEOUT);
removeEventListener(addNodeListener);
removeEventListener(removeNodeListener);
removeEventListener(moveNodeListener);
checkNodeAdded(added, new String[]{nodeName3 + "/" + nodeName2}, null);
checkNodeRemoved(removed, new String[]{nodeName1 + "/" + nodeName2, nodeName1}, null);