verify(widgetService);
assertEquals(ViewNames.STORE, view);
final Map<String, Object> modelMap = model.asMap();
assertEquals(searchTerm, modelMap.get(ModelKeys.SEARCH_TERM));
assertTrue(model.containsAttribute(ModelKeys.WIDGETS));
assertThat(model.containsAttribute(ModelKeys.WIDGETS_STATISTICS), is(true));
assertEquals(offset, modelMap.get(ModelKeys.OFFSET));
assertEquals(result, modelMap.get(ModelKeys.WIDGETS));
assertThat(model.containsAttribute(ModelKeys.TAGS), is(true));
assertThat(model.containsAttribute(ModelKeys.CATEGORIES), is(true));