String view = controller.viewWidget(model, WIDGET_ID, REFERRER_ID);
verify(widgetService);
assertThat(view, is(equalTo(ViewNames.WIDGET)));
assertThat(model.containsAttribute(ModelKeys.WIDGET), is(true));
assertThat(model.containsAttribute(ModelKeys.WIDGET_STATISTICS), is(true));
assertThat(model.containsAttribute(ModelKeys.TAGS), is(true));
assertThat(model.containsAttribute(ModelKeys.CATEGORIES), is(true));
assertThat(model.containsAttribute(ModelKeys.REFERRING_PAGE_ID), is(true));
assertThat(((Widget) model.asMap().get(ModelKeys.WIDGET)), is(sameInstance(w)));
assertNull(model.asMap().get("widgetRating"));