### Question:
HtmlLanguageBuilder { public HtmlLanguageBuilder addSpanFont() { spanElementStrategies.add(new FontElementStrategy()); return this; } HtmlLanguageBuilder(); HtmlLanguageBuilder name(String name); HtmlLanguageBuilder add(BlockType blockType); HtmlLanguageBuilder add(SpanType spanType); HtmlLanguageBuilder addSubstitution(SpanType spanType, String alternativeTagName); HtmlLanguageBuilder addHeadings(int level); HtmlLanguageBuilder addSpanFont(); HtmlLanguageBuilder setXhtmlStrict(boolean xhtmlStrict); HtmlLanguageBuilder document(String prefix, String suffix); HtmlLanguageBuilder setSupportsImages(boolean supportsImages); HtmlLanguage create();  }### Answer:
@Test public void addSpanFont() { StringWriter writer = new StringWriter(); HtmlLanguage language = builder.addSpanFont().add(BlockType.PARAGRAPH).document("", "").name("Test").create(); DocumentBuilder builder = language.createDocumentBuilder(writer); builder.beginDocument(); builder.beginSpan(SpanType.SPAN, new Attributes()); builder.characters("test"); builder.endSpan(); builder.characters(" "); addSpanWithCssColor(builder); builder.endDocument(); assertEquals("test <font color=\"purple\">inside font</font>", writer.toString()); }