public void updateWidget_valid() {
Widget widget = new Widget(123L, "http://example.com/widget");
widget.setTitle("Widget title");
widget.setType("OpenSocial");
BindingResult errors = new BeanPropertyBindingResult(widget, "widget");
SessionStatus sessionStatus = createMock(SessionStatus.class);
service.updateWidget(widget);
sessionStatus.setComplete();
expectLastCall();
replay(service, sessionStatus);
String view = controller.updateWidgetDetail(widget, errors, validToken, validToken, sessionStatus);
verify(service, sessionStatus);