### Question:
TinyMCESettings implements Serializable { public void add(Button button, Toolbar toolbar, Position position) { if (button instanceof PluginButton) register(((PluginButton)button).getPlugin()); controls.add(new Control(button, toolbar, position)); } TinyMCESettings();  TinyMCESettings(Theme theme);  TinyMCESettings(Theme theme, Language lang); Theme getTheme(); Language getLanguage(); String getDocumentBaseUrl(); void setDocumentBaseUrl(String documentBaseUrl); void addCustomSetting(String customSetting); String[] getCustomSettings(); ResourceReference getContentCss(); void setContentCss(ResourceReference contentCss); @Deprecated boolean getAutoResize(); @Deprecated void setAutoResize(boolean auto_resize); String getBlockFormats(); void setBlockFormats(String blockFormats); void setToolbarLocation(Location toolbarLocation); Location getToolbarLocation(); void setStatusbarLocation(Location statusbarLocation); Location getStatusbarLocation(); void setToolbarAlign(Align toolbarAlign); Align getToolbarAlign(); void setEntityEncoding(EntityEncoding entityEncoding); EntityEncoding getEntityEncoding(); void setReadOnly(boolean readOnly); boolean isReadOnly(); void setResizing(boolean resizing); boolean getResizing(); void setHorizontalResizing(boolean horizontalResizing); boolean getHorizontalResizing(); boolean getResizingUseCookie(); void setResizingUseCookie(boolean resizingUseCookie); void setConvertUrls(boolean convertUrls); Boolean getConvertUrls(); void setRemoveScriptHost(Boolean removeScriptHost); Boolean getRemoveScriptHost(); void setRelativeUrls(Boolean relativeUrls); Boolean getRelativeUrls(); void add(Button button, Toolbar toolbar, Position position); void disableButton(Button button); void setToolbarButtons(Toolbar toolbar, List<Button> buttons); List<Button> getToolbarButtons(Toolbar toolbar); void register(Plugin plugin); final String toJavaScript(Mode mode, Collection<Component> components); String getLoadPluginJavaScript(); String getAdditionalPluginJavaScript(); static final ResourceReference REFERENCE; static final ResourceReference REFERENCE_MIN; static final Set<Language> languages; }### Answer:
@Test public void testAdd() throws Exception { SavePlugin savePlugin = new SavePlugin(); settings.register(savePlugin); assertNotNull(settings.getPlugins()); assertEquals(1, settings.getPlugins().size()); settings.add(savePlugin.getSaveButton(), TinyMCESettings.Toolbar.first, TinyMCESettings.Position.before); assertEquals(1, settings.getPlugins().size()); }