ProcessInstanceListViewImpl extends AbstractMultiGridView<ProcessInstanceSummary, ProcessInstanceListPresenter> implements ProcessInstanceListPresenter.ProcessInstanceListView { protected Command getAbortCommand(final ExtendedPagedTable<ProcessInstanceSummary> extendedPagedTable) { return () -> presenter.bulkAbort(extendedPagedTable.getSelectedItems()); }  @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 testAbortCommand() { final ExtendedPagedTable table = mock(ExtendedPagedTable.class); view.getAbortCommand(table).execute(); verify(presenter).bulkAbort(any()); }