WorkItemPage extends BaseDecisionTableColumnPage<T> { String currentWorkItem() { return plugin.getWorkItem(); } @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 testCurrentWorkItem() { final String expectedWorkItem = "workItem"; when(plugin.getWorkItem()).thenReturn(expectedWorkItem); final String actualWorkItem = page.currentWorkItem(); verify(plugin).getWorkItem(); assertEquals(expectedWorkItem, actualWorkItem); }