parseAndAssertNodeCount(1);
assertTrue("First node should be a HTML tag", node[0] instanceof Html);
Html html = (Html)node[0];
assertTrue("HTML tag should have one child", 1 == html.getChildCount ());
assertTrue("First child should be a HEAD tag", html.childAt (0) instanceof HeadTag);
HeadTag head = (HeadTag)html.childAt (0);
assertTrue("HEAD tag should have three children", 3 == head.getChildCount ());
assertTrue("Third child should be a STYLE tag", head.childAt (2) instanceof StyleTag);
StyleTag styleTag = (StyleTag)head.childAt (2);
assertStringEquals("Expected Style Code",expectedCode,styleTag.getStyleCode());
}