tck/src/main/java/org/hobsoft/microbrowser/tck/MicrodataPropertyTck.java
@Test
	public void getNameReturnsName()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<div itemscope='itemscope' itemtype='http://i'>"
			+ "<p itemprop='x'/>"
			+ "</div>"
			+ "</body></html>"));
		
		String actual = newBrowser().get(url(server()))
			.getItem("http://i")
			.getProperty("x")
			.getName();
		
		assertThat("item property name", actual, is("x"));
	}
@Test
	public void getNameReturnsName()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<div itemscope='itemscope' itemtype='http://i'>"
			+ "<p itemprop='x'/>"
			+ "</div>"
			+ "</body></html>"));
		
		String actual = newBrowser().get(url(server()))
			.getItem("http://i")
			.getProperty("x")
			.getName();
		
		assertThat("item property name", actual, is("x"));
	}
@ Test public void getNameReturnsName ( ) { server ( ) . enqueue ( new MockResponse ( ) . setBody ( "<html><body>" + "<div itemscope='itemscope' itemtype='http://i'>" + "<p itemprop='x'/>" + "</div>" + "</body></html>" ) ) ; String actual = newBrowser ( ) . get ( url ( server ( ) ) ) . getItem ( "http://i" ) . getProperty ( "x" ) . getName ( ) ; assertThat ( "item property name" , actual , is ( "x" ) ) ; }
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------