WorkItemPage extends BaseDecisionTableColumnPage<T> { boolean hasWorkItems() { return view.workItemsCount() > 1; } @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 testHasWorkItemsWhenItIsFalse() { when(view.workItemsCount()).thenReturn(1); final boolean hasWorkItems = page.hasWorkItems(); assertFalse(hasWorkItems); }
@Test public void testHasWorkItemsWhenItIsTrue() { when(view.workItemsCount()).thenReturn(2); final boolean hasWorkItems = page.hasWorkItems(); assertTrue(hasWorkItems); }