### Question:
TinyMCESettings implements Serializable { void addToolbarAlign(StringBuffer buffer) { if (toolbarAlign != null) { buffer.append(",\n\t") .append("theme_advanced_toolbar_align : ") .append("\"") .append(toolbarAlign.getName()) .append("\""); } } 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 testAddToolbarAlign() throws Exception { settings.setToolbarAlign(TinyMCESettings.Align.left); settings.addToolbarAlign(buffer); assertTrue(buffer.capacity() > 0); assertEquals(",\n\ttheme_advanced_toolbar_align : \"left\"", buffer.toString()); }