// The second node should be a normal tag
assertTrue("Node 2 should be an Tag", node[1] instanceof Tag);
Tag htag = (Tag) node[1];
assertStringEquals("Contents of the tag",
"jsp:useBean id=\"transfer\" scope=\"session\" class=\"com.bank.PageBean\"", htag.getText());
assertStringEquals("html", "<JSP:USEBEAN ID=\"transfer\" SCOPE=\"session\" CLASS=\"com.bank.PageBean\"/>", htag
.toHtml());
// The third node should be an HTMLJspTag
assertTrue("Node 3 should be an HTMLJspTag", node[2] instanceof JspTag);
JspTag tag2 = (JspTag) node[2];
String expected = "\r\n" + " org.apache.struts.util.BeanUtils.populate(transfer, request);\r\n"