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