DocumentRange span = page.getContents().get(0);
Assert.assertEquals(0, span.getBegin());
Assert.assertEquals(5, span.getEnd());
Assert.assertTrue(span instanceof Link);
Link link = (Link)span;
Assert.assertEquals("index.html",link.getTarget().getOriginal().toString());
Address address = link.getTarget();
Assert.assertNotNull(address.toString());
}