void () { Icon icon = AllIcons.General.Gear; assertNull(HtmlChunk.empty().findIcon("id")); HtmlChunk chunk = HtmlChunk.icon("id", icon); assertEquals("<icon src=\"id\"/>", chunk.toString()); assertEquals(icon, chunk.findIcon("id")); chunk = chunk.wrapWith("p"); assertEquals(icon, chunk.findIcon("id")); assertEquals("<p><icon src=\"id\"/></p>", chunk.toString()); chunk = HtmlChunk.fragment(HtmlChunk.text("Hello!"), chunk); assertEquals(icon, chunk.findIcon("id")); assertEquals("Hello!<p><icon src=\"id\"/></p>", chunk.toString()); }