@Test
void emptyScript() {

    String content = "<script type=\"text/javascript\"></script>";
    Document document = new HTMLParser(new StringTemplateSource("test", content)).parse();
    assertEquals(1, document.nodes.size());
    Element script = (Element) document.nodes.get(0);
    assertEquals("script", script.name);
    assertTrue(script.nodes.isEmpty());
}