AttributeColumnPlugin extends BaseDecisionTableColumnPlugin { @Override public String getTitle() { return translate(GuidedDecisionTableErraiConstants.AttributeColumnPlugin_AddAttributeColumn); } @Inject  AttributeColumnPlugin(final AttributeColumnPage page,
                                 final Event<WizardPageStatusChangeEvent> changeEvent,
                                 final TranslationService translationService); @Override String getTitle(); @Override List<WizardPage> getPages(); @Override Boolean generateColumn(); String getAttribute(); void setAttribute(String attribute); @Override Type getType();  }
@Test public void testGetTitle() { final String errorKey = GuidedDecisionTableErraiConstants.AttributeColumnPlugin_AddAttributeColumn; final String errorMessage = "Title"; when(translationService.format(errorKey)).thenReturn(errorMessage); final String title = plugin.getTitle(); assertEquals(errorMessage, title); }