replay(widget);
List<RegionWidget> newLastWidgetColumn = new ArrayList<RegionWidget>();
newLastWidgetColumn.add(widget);
List<Region> regions = new ArrayList<Region>();
Region region = createStrictMock(Region.class);
expect(region.getRegionWidgets()).andReturn(newLastWidgetColumn).times(2);
expect(region.getRenderOrder()).andReturn(1);
replay(region);
regions.add(region);
widget = createStrictMock(RegionWidget.class);
widget.setRegion(region);
widget.setRenderOrder(1);
expect(widget.getRenderOrder()).andReturn(1).anyTimes();
replay(widget);
List<RegionWidget> movedWidgets = new ArrayList<RegionWidget>();
movedWidgets.add(widget);
Region deletedRegion = createStrictMock(Region.class);
expect(deletedRegion.getRegionWidgets()).andReturn(movedWidgets);
replay(deletedRegion);
regions.add(deletedRegion);
PageLayout prevLayout = createStrictMock(PageLayoutImpl.class);
expect(prevLayout.getNumberOfRegions()).andReturn(new Long(2)).anyTimes();