@Test
	public void getIdReturnsId() throws MalformedURLException
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<div itemscope='itemscope' itemtype='http://y' itemid='http://x'/>"
			+ "</body></html>"));
		
		URL actual = newBrowser().get(url(server()))
			.getItem("http://y")
			.getId();
		
		assertThat("item id", actual, is(new URL("http://x")));
	}
@ Test public void getIdReturnsId ( ) throws MalformedURLException { server ( ) . enqueue ( new MockResponse ( ) . setBody ( "<html><body>" + "<div itemscope='itemscope' itemtype='http://y' itemid='http://x'/>" + "</body></html>" ) ) ; URL actual = newBrowser ( ) . get ( url ( server ( ) ) ) . getItem ( "http://y" ) . getId ( ) ; assertThat ( "item id" , actual , is ( new URL ( "http://x" ) ) ) ; }
----------------------------------------------------------------------------------------------------------------