SummaryPage extends BaseDecisionTableColumnPage { @Override public String getTitle() { return translate(GuidedDecisionTableErraiConstants.SummaryPage_NewColumn); } @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 testGetTitle() throws Exception { final String errorKey = GuidedDecisionTableErraiConstants.SummaryPage_NewColumn; final String errorMessage = "Title"; when(translationService.format(errorKey)).thenReturn(errorMessage); final String title = page.getTitle(); assertEquals(errorMessage, title); }