testRootNode.save();
EventResult result = new EventResult(log);
addEventListener(result, Event.PROPERTY_ADDED);
// now lock node. no save needed
lockable.lock(false,true);
removeEventListener(result);
Event[] events = result.getEvents(DEFAULT_WAIT_TIMEOUT);
assertEquals("Wrong number of events.", 2, events.length);