void () { CompositeAppearance appearance = new CompositeAppearance(); appearance.getEnding().addText("abc", ATTRIBUTES); assertEquals("abc", appearance.getText()); appearance.getEnding().addText("comment", ATTRIBUTES); assertEquals("abccomment", appearance.getText()); appearance.getEnding().addText("text", ATTRIBUTES); assertEquals("abccommenttext", appearance.getText()); appearance.getBeginning().addText("123", ATTRIBUTES); assertEquals("123abccommenttext", appearance.getText()); }