userService = createMock(UserService.class);
pageService = new DefaultPageService(pageRepository, regionRepository, widgetRepository, regionWidgetRepository, pageLayoutRepository, userService, defaultPageName);
validWidget = new Widget(1L, "http://dummy.apache.org/widgets/widget.xml");
targetRegion = new Region();
targetRegion.setEntityId(2L);
targetRegion.setRegionWidgets(new ArrayList<RegionWidget>());
targetRegion.getRegionWidgets().add(new RegionWidget(1L, validWidget, targetRegion, 0));
targetRegion.getRegionWidgets().add(new RegionWidget(2L, validWidget, targetRegion, 1));
targetRegion.getRegionWidgets().add(new RegionWidget(3L, validWidget, targetRegion, 2));
originalRegion = new Region();
originalRegion.setEntityId(1L);
originalRegion.setRegionWidgets(new ArrayList<RegionWidget>());
originalRegion.getRegionWidgets().add(new RegionWidget(4L, validWidget, targetRegion, 0));
originalRegion.getRegionWidgets().add(new RegionWidget(5L, validWidget, targetRegion, 1));
originalRegion.getRegionWidgets().add(new RegionWidget(6L, validWidget, targetRegion, 2));