tck/src/main/java/org/hobsoft/microbrowser/tck/MicrodataItemTck.java
@Test
	public void unwrapWithUnknownTypeThrowsException()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<div itemscope='itemscope' itemtype='http://i'/>"
			+ "</body></html>"));
		
		MicrodataItem item = newBrowser().get(url(server()))
			.getItem("http://i");

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

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