SummaryPage extends BaseDecisionTableColumnPage { void openPage(final String selectedItemText) { if (selectedItemText.isEmpty() || presenter.isReadOnly()) { return; } final DecisionTableColumnPlugin plugin = findPluginByIdentifier(selectedItemText); wizard.start(plugin); } @Inject  SummaryPage(final ManagedInstance<DecisionTableColumnPlugin> pluginManagedInstance,
                       final View view,
                       final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); @PostConstruct void loadPlugins();  }
@Test public void testOpenPageWhenSelectedItemIsBlank() { final String selectedItem = ""; page.openPage(selectedItem); verify(wizard, never()).start(any(BaseDecisionTableColumnPlugin.class)); }
@Test public void testOpenPageWhenTableIsReadOnly() { when(presenter.isReadOnly()).thenReturn(true); final String selectedItem = "page"; page.openPage(selectedItem); verify(wizard, never()).start(any(BaseDecisionTableColumnPlugin.class)); }