tck/src/main/java/org/hobsoft/microbrowser/tck/LinkTck.java
@Test
	public void getHrefWhenAnchorAndAbsoluteHrefReturnsUrl() throws MalformedURLException
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<a rel='r' href='http://x/'/>"
			+ "</body></html>"));
		
		URL actual = newBrowser().get(url(server()))
			.getLink("r")
			.getHref();
		
		assertThat("link href", actual, is(new URL("http://x/")));
	}
@Test
	public void getHrefWhenAnchorAndAbsoluteHrefReturnsUrl() throws MalformedURLException
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<a rel='r' href='http://x/'/>"
			+ "</body></html>"));
		
		URL actual = newBrowser().get(url(server()))
			.getLink("r")
			.getHref();
		
		assertThat("link href", actual, is(new URL("http://x/")));
	}
----------------------------------------------------------------------------------------------------------------