ProcessInstanceListViewImpl extends AbstractMultiGridView<ProcessInstanceSummary, ProcessInstanceListPresenter> implements ProcessInstanceListPresenter.ProcessInstanceListView { protected AnchorListItem getBulkSignal(final ExtendedPagedTable<ProcessInstanceSummary> extendedPagedTable) { final AnchorListItem bulkSignalNavLink = GWT.create(AnchorListItem.class); bulkSignalNavLink.setText(constants.Bulk_Signal()); bulkSignalNavLink.setIcon(IconType.BELL); bulkSignalNavLink.setIconFixedWidth(true); bulkSignalNavLink.addClickHandler(event -> getSignalCommand(extendedPagedTable).execute()); return bulkSignalNavLink; }  @Override List<String> getInitColumns(); @Override List<String> getBannedColumns(); @Override String getEmptyTableCaption(); @Override List<AnchorListItem> getBulkActionsItems(ExtendedPagedTable<ProcessInstanceSummary> extendedPagedTable); @Override void initColumns(final ListTable<ProcessInstanceSummary> extendedPagedTable);  }
@Test public void testBulkSignal() { doAnswer(invocation -> { ClickHandler handler = (ClickHandler) invocation.getArguments()[0]; handler.onClick(mock(ClickEvent.class)); return null; }).when(anchorListItem).addClickHandler(any()); final ExtendedPagedTable table = mock(ExtendedPagedTable.class); view.getBulkSignal(table); verify(presenter).bulkSignal(any()); }