void () { CompositeAppearance appearance = new CompositeAppearance(); appearance.getEnding().addText("c", ATTRIBUTES); appearance.getBeginning().addText("b", ATTRIBUTES); assertEquals("bc", appearance.getText()); appearance.getSuffix().addText("d", ATTRIBUTES); assertEquals("bcd", appearance.getText()); appearance.getBeginning().addText("a", ATTRIBUTES); assertEquals("abcd", appearance.getText()); }