}
assertEquals("There should be 5 contained nodes in the link tag", 5, i);
assertTrue(
"First contained node should be an image tag",
containedNodes[0] instanceof ImageTag);
ImageTag imageTag = (ImageTag) containedNodes[0];
assertEquals(
"Image Location",
"http://ad.abcnews.com/ad/sponsors/buena_vista_pictures/bvpi-ban0003.gif",
imageTag.getImageURL());
assertEquals("Image Height", "60", imageTag.getAttribute("HEIGHT"));
assertEquals("Image Width", "468", imageTag.getAttribute("WIDTH"));
assertEquals("Image Border", "0", imageTag.getAttribute("BORDER"));
assertEquals(
"Image Alt",
"See Signs in Theaters 8-2 - Starring Mel Gibson",
imageTag.getAttribute("ALT"));
assertTrue(
"Second contained node should be Tag",
containedNodes[1] instanceof Tag);
Tag tag1 = (Tag) containedNodes[1];
assertEquals(