WorkItemPage extends BaseDecisionTableColumnPage<T> { @Override public void isComplete(final Callback<Boolean> callback) { callback.callback(plugin().isWorkItemSet()); } @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 testIsCompleteWhenWorkItemIsSet() { when(plugin.isWorkItemSet()).thenReturn(true); page.isComplete(Assert::assertTrue); }
@Test public void testIsCompleteWhenWorkItemIsNotSet() { when(plugin.isWorkItemSet()).thenReturn(false); page.isComplete(Assert::assertFalse); }