WorkItemPage extends BaseDecisionTableColumnPage<T> { void showParameters() { final boolean hasWorkItemDefinition = workItemDefinition() != null; if (isParametersEnabled() && hasWorkItemDefinition) { view.showParameters(parametersWidget()); } else { view.hideParameters(); } } @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 testShowParametersWhenParametersAreNotEnabled() { final PortableWorkDefinition workDefinition = mock(PortableWorkDefinition.class); when(plugin.getWorkItemDefinition()).thenReturn(workDefinition); page.showParameters(); verify(view).hideParameters(); }