WorkItemPage extends BaseDecisionTableColumnPage<T> { void selectWorkItem(final String selectedWorkItem) { plugin().setWorkItem(selectedWorkItem); showParameters(); } @Inject  WorkItemPage(final View view,
                        final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); void enableParameters();  }
@Test public void testSelectWorkItem() { final String workItem = "workItem"; when(view.getSelectedWorkItem()).thenReturn(workItem); page.selectWorkItem(view.getSelectedWorkItem()); verify(plugin).setWorkItem(workItem); verify(page).showParameters(); }