AttributeColumnPlugin extends BaseDecisionTableColumnPlugin { @Override public Boolean generateColumn() { presenter.appendColumn(getAttributeCol52()); return true; } @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 testGenerateColumn() throws Exception { final String attributeName = Attribute.DIALECT.getAttributeName(); final ArgumentCaptor<AttributeCol52> colCaptor = ArgumentCaptor.forClass(AttributeCol52.class); plugin.setAttribute(Attribute.DIALECT.getAttributeName()); final Boolean success = plugin.generateColumn(); verify(presenter).appendColumn(colCaptor.capture()); assertTrue(success); assertEquals(attributeName, colCaptor.getValue().getAttribute()); }