parseAndAssertNodeCount(1);
assertType("node should be", TableColumn.class, node[0]);
TableColumn col = (TableColumn) node[0];
Node node = col.children().nextNode();
assertType("node inside column", ImageTag.class, node);
ImageTag imageTag = (ImageTag) node;
// Get the data from the node
assertEquals(
"Image location",
"http://www.cia.gov/graphics/images_home2/cia_banners_template3_01.gif",
imageTag.getImageURL());
assertEquals(
"Alt Value",
"Central Intelligence Agency, Director of Central Intelligence",
imageTag.getAttribute("ALT"));
assertEquals("Width", "241", imageTag.getAttribute("WIDTH"));
assertEquals("Height", "49", imageTag.getAttribute("HEIGHT"));
}