@Test
	public void unwrapWithUnknownTypeThrowsException()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<div itemscope='itemscope' itemtype='http://i'>"
			+ "<p itemprop='x'/>"
			+ "</div>"
			+ "</body></html>"));
		
		MicrodataProperty property = newBrowser().get(url(server()))
			.getItem("http://i")
			.getProperty("x");

		thrown().expect(IllegalArgumentException.class);
		thrown().expectMessage("Cannot unwrap to: class java.lang.Void");
		
		property.unwrap(Void.class);
	}
@Test
	public void unwrapWithUnknownTypeThrowsException()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<div itemscope='itemscope' itemtype='http:
			+ "<p itemprop='x'/>"
			+ "</div>"
			+ "</body></html>"));
		
		MicrodataProperty property = newBrowser().get(url(server()))
			.getItem("http:
			.getProperty("x");

		thrown().expect(IllegalArgumentException.class);
		thrown().expectMessage("Cannot unwrap to: class java.lang.Void");
		
		property.unwrap(Void.class);
	}
@ Test public void unwrapWithUnknownTypeThrowsException ( ) { server ( ) . enqueue ( new MockResponse ( ) . setBody ( "<html><body>" + "<div itemscope='itemscope' itemtype='http://i'>" + "<p itemprop='x'/>" + "</div>" + "</body></html>" ) ) ; MicrodataProperty property = newBrowser ( ) . get ( url ( server ( ) ) ) . getItem ( "http://i" ) . getProperty ( "x" ) ; thrown ( ) . expect ( IllegalArgumentException . class ) ; thrown ( ) . expectMessage ( "Cannot unwrap to: class java.lang.Void" ) ; property . unwrap ( Void . class ) ; }
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------