@Test
	public void getLinkWhenAnchorReturnsLink() throws MalformedURLException
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<a rel='x' href='http://y/'/>"
			+ "</body></html>"));
		
		Link actual = newBrowser().get(url(server()))
			.getLink("x");
		
		assertThat("link", actual, is(link("x", "http://y/")));
	}
@ Test public void getLinkWhenAnchorReturnsLink ( ) throws MalformedURLException { server ( ) . enqueue ( new MockResponse ( ) . setBody ( "<html><body>" + "<a rel='x' href='http://y/'/>" + "</body></html>" ) ) ; Link actual = newBrowser ( ) . get ( url ( server ( ) ) ) . getLink ( "x" ) ; assertThat ( "link" , actual , is ( link ( "x" , "http://y/" ) ) ) ; }
----------------------------------------------------------------------------------------------------------------