}
@Test
public void updateWidget_valid() {
final String widgetUrl = "http://example.com/widget";
Widget widget = new Widget(123L, widgetUrl);
widget.setTitle("Widget title");
widget.setType("OpenSocial");
widget.setDescription("Lorem ipsum");
BindingResult errors = new BeanPropertyBindingResult(widget, "widget");
SessionStatus sessionStatus = createMock(SessionStatus.class);
ModelMap modelMap = new ExtendedModelMap();
expect(service.getWidgetByUrl(widgetUrl)).andReturn(widget);