newHtml("Test Page", "<a id=\"t\" href=\"http://test.com/myPage.html\">myPage</a>"));
addPageRequest("http://test.com/myPage.html", newHtml("My Page", ""));
AbstractDocument page = agent().get("http://test.com");
assertEquals(1, page.links().size());
Link link = page.links().find(byIdOrClass("t"));
assertNotNull(link);
Resource myPage = link.click();
assertEquals("My Page", myPage.getTitle());
}