when(propertyEvent.getType()).thenReturn(Event.PROPERTY_ADDED);
when(propertyEvent.getPath()).thenReturn(resourcePath + "/" + SuperimposingResourceProvider.PROP_SUPERIMPOSE_SOURCE_PATH);
EventIterator eventIterator = mock(EventIterator.class);
when(eventIterator.hasNext()).thenReturn(true, true, false);
when(eventIterator.nextEvent()).thenReturn(nodeEvent, propertyEvent);
return eventIterator;
}
private EventIterator prepareNodeChangeEvent(Resource pResource) throws RepositoryException {
String resourcePath = pResource.getPath();