AttributeColumnPage extends BaseDecisionTableColumnPage<AttributeColumnPlugin> { @Override public String getTitle() { return translate(GuidedDecisionTableErraiConstants.AttributeColumnPage_AddNewAttribute); } @Inject  AttributeColumnPage(final View view,
                               final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView();  }
@Test public void testGetTitle() throws Exception { final String errorKey = GuidedDecisionTableErraiConstants.AttributeColumnPage_AddNewAttribute; final String errorMessage = "Title"; when(translationService.format(errorKey)).thenReturn(errorMessage); final String title = page.getTitle(); assertEquals(errorMessage, title); }