}
@Test
public void add_script() throws Exception
{
Document document = new Document();
document.newRootElement("html").element("body").element("p").text("Ready to be updated with scripts.");
DocumentLinkerImpl linker = new DocumentLinkerImpl(true, false, true, "1.2.3");
linker.addScript("doSomething();");
linker.addScript("doSomethingElse();");
linker.updateDocument(document);
assertEquals(document.toString(), readFile("add_script.txt").trim());
}