### Question:
MarkupToEclipseHelpMojo extends AbstractMojo { protected HtmlDocumentBuilder createRootBuilder(Writer writer, String name, String relativePath) { HtmlDocumentBuilder builder = new HtmlDocumentBuilder(writer, formatOutput); builder.setTitle(title == null ? name : title); builder.setEmitDtd(emitDoctype); if (emitDoctype && htmlDoctype != null) { builder.setHtmlDtd(htmlDoctype); } builder.setUseInlineStyles(useInlineCssStyles); builder.setSuppressBuiltInStyles(suppressBuiltInCssStyles); builder.setLinkRel(linkRel); builder.setDefaultAbsoluteLinkTarget(defaultAbsoluteLinkTarget); builder.setPrependImagePrefix(prependImagePrefix); builder.setXhtmlStrict(xhtmlStrict); builder.setCopyrightNotice(copyrightNotice); builder.setHtmlFilenameFormat(htmlFilenameFormat); configureStylesheets(builder, relativePath); return builder; }  void execute();  }### Answer:
@Test public void createBuilder() { markupToEclipseHelp.copyrightNotice = UUID.randomUUID().toString(); markupToEclipseHelp.title = UUID.randomUUID().toString(); markupToEclipseHelp.htmlFilenameFormat = "$1.test.html"; HtmlDocumentBuilder builder = markupToEclipseHelp.createRootBuilder(new StringWriter(), "test", ""); assertEquals(markupToEclipseHelp.copyrightNotice, builder.getCopyrightNotice()); assertEquals(markupToEclipseHelp.title, builder.getTitle()); assertEquals(markupToEclipseHelp.htmlFilenameFormat, builder.getHtmlFilenameFormat()); }