MessageSourceMacroDescriptor implements IMacroDescriptor { MessageSourceMacroDescriptor insertText(String insertText) { this.insertText = insertText; return this; } MessageSourceMacroDescriptor(String macroName); @Override String getTitle(Locale locale); @Override String getDescription(Locale locale);  }
@Test public void setAndGetInsertText() { MessageSourceMacroDescriptor desc = descriptor.insertText("insertText"); assertSame(descriptor, desc); assertEquals("insertText", descriptor.getInsertText()); }