expect(pageRepository.get(PAGE_ID)).andReturn(value);
expect(widgetRepository.get(WIDGET_ID)).andReturn(widget);
expect(regionRepository.save(originalRegion)).andReturn(originalRegion);
replay(pageRepository,regionRepository,widgetRepository);
RegionWidget instance = pageService.addWidgetToPage(PAGE_ID, WIDGET_ID);
verify(pageRepository, regionRepository, widgetRepository);
verifyPositions(0, instance, true);
assertThat(originalRegion.getRegionWidgets().get(0), is(sameInstance(instance)));