}
@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.");
DocumentHeadBuilder builder = new DocumentHeadBuilderImpl();
builder.addScript("doSomething();");
builder.addScript("doSomethingElse();");
builder.updateDocument(document);
assertEquals(document.toString(), readFile("add_script.txt", false).trim());
}