parser.addScanner(new LinkScanner("-l"));
parseAndAssertNodeCount(6);
// The node should be an LinkTag
assertTrue("Node should be a LinkTag", node[0] instanceof LinkTag);
LinkTag linkNode = (LinkTag) node[2];
assertStringEquals(
"Link incorrect!!",
"http://photo.kimo.com.tw",
linkNode.getLink());
assertEquals(
"Link beginning",
new Integer(48),
new Integer(linkNode.elementBegin()));
assertEquals(
"Link ending",
new Integer(38),
new Integer(linkNode.elementEnd()));
LinkTag linkNode2 = (LinkTag) node[4];
assertStringEquals(
"Link incorrect!!",
"http://address.kimo.com.tw",
linkNode2.getLink());
assertEquals(
"Link beginning",
new Integer(46),
new Integer(linkNode2.elementBegin()));
assertEquals(
"Link ending",
new Integer(42),
new Integer(linkNode2.elementEnd()));
}