}
@Test
public void logged_error_if_missing_html_element_and_css()
{
Document document = new Document();
document.newRootElement("not-html").text("not an HTML document");
DocumentLinkerImpl linker = new DocumentLinkerImpl(true, false, true, "1.2.3");
// Only checked if there's something to link.
linker.addStylesheetLink("style.css", null);
replay();
linker.updateDocument(document);
// Check that document is unchanged.
assertEquals(document.toString(), "<not-html>not an HTML document</not-html>");
verify();
}