AdminAppsCategoriesPresenterImpl implements AdminCategoriesView.Presenter,
                                                         AppCategoriesView.AppCategoryHierarchyProvider { @Override public void onAppSearchResultLoad(AppSearchResultLoadEvent event) { view.getTree().getSelectionModel().deselectAll(); } @Inject  AdminAppsCategoriesPresenterImpl(final AppCategoriesViewFactory viewFactory,
                                     final TreeStore<AppCategory> treeStore); @Override List<String> getGroupHierarchy(AppCategory appCategory); @Override AppCategoriesView getView(); @Override void go(final HasId selectedAppCategory); @Override void onAddCategorySelected(final AddCategorySelected event); @Override void onAppSearchResultLoad(AppSearchResultLoadEvent event); @Override void onCategorizeAppSelected(final CategorizeAppSelected event); @Override void onDeleteCategorySelected(final DeleteCategorySelected event); @Override void onMoveCategorySelected(MoveCategorySelected event); @Override void onRemove(StoreRemoveEvent<App> event); @Override void onRenameCategorySelected(final RenameCategorySelected event);  }
@Test public void verifyCategoriesDeselected_onAppSearchResultLoad() { AppSearchResultLoadEvent eventMock = mock(AppSearchResultLoadEvent.class); uut.onAppSearchResultLoad(eventMock); verify(viewMock).getTree(); verify(treeMock).getSelectionModel(); verify(selectionModelMock).deselectAll(); verifyNoMoreInteractions(viewMock, treeMock, selectionModelMock); verifyZeroInteractions(adminAppServiceMock, appServiceMock, treeStoreMock); }