addPageRequest("http://test.com",
newHtml("Test Page", "<a id=\"foo\" class=\"bar baz\" href=\"foo.html\">foo</a>"));
AbstractDocument page = agent().get("http://test.com");
assertNotNull(page.link("foo"));
assertNotNull(page.link("bar"));
assertNotNull(page.link("baz"));
assertNull(page.link("x"));
}