@Test
public void updateRegionWidgetCollapsedStatus() {
final boolean COLLAPSED = true;
RegionWidget expectedRegionWidget = new RegionWidgetImpl(VALID_REGION_WIDGET_ID);
expectedRegionWidget.setCollapsed(COLLAPSED);
expect(regionWidgetService.saveRegionWidgetCollapsedState(VALID_REGION_WIDGET_ID, COLLAPSED)).andReturn(expectedRegionWidget);
replay(regionWidgetService);
RegionWidget result = regionWidgetApi.updateRegionWidgetCollapsedStatus(VALID_REGION_WIDGET_ID, COLLAPSED);
verify(regionWidgetService);
assertThat(result, sameInstance(expectedRegionWidget));
}