Assert.assertEquals(feed.getGenerator().getUri(), new URI("http://www.example.com/"));
Assert.assertEquals(feed.getGenerator().getVersion(), "1.0");
Assert.assertEquals(feed.getGenerator().getText().trim(), "Example Toolkit");
Assert.assertNotNull(feed.getUpdated());
Assert.assertEquals(feed.getId().toString(), "tag:example.org,2003:3");
Link alternate = feed.getLinkByRel("alternate");
Assert.assertNotNull(alternate);
Assert.assertEquals(alternate.getType(), MediaType.valueOf("text/html"));
Assert.assertEquals(alternate.getHreflang(), "en");
Assert.assertEquals(alternate.getHref(), new URI("http://example.org/"));
Link self = feed.getLinkByRel("self");
Assert.assertNotNull(self);
Assert.assertEquals(self.getType(), MediaType.APPLICATION_ATOM_XML_TYPE);
Assert.assertEquals(self.getHreflang(), null);
Assert.assertEquals(self.getHref(), new URI("http://example.org/feed.atom"));
Assert.assertEquals(1, feed.getEntries().size());
Entry entry = feed.getEntries().get(0);
Assert.assertEquals("Atom draft-07 snapshot", entry.getTitle());
alternate = entry.getLinkByRel("alternate");
Assert.assertNotNull(alternate);
Assert.assertEquals(alternate.getType(), MediaType.valueOf("text/html"));
Assert.assertEquals(alternate.getHref(), new URI("http://example.org/2005/04/02/atom"));
Link enclosure = entry.getLinkByRel("enclosure");
Assert.assertNotNull(enclosure);
Assert.assertEquals(enclosure.getType(), MediaType.valueOf("audio/mpeg"));
Assert.assertEquals(enclosure.getLength(), "1337");
Assert.assertEquals(enclosure.getHref(), new URI(
"http://example.org/audio/ph34r_my_podcast.mp3"));
Assert.assertEquals(entry.getId(), new URI("tag:example.org,2003:3.2397"));
Assert.assertNotNull(entry.getUpdated());
Assert.assertNotNull(entry.getPublished());
Person author = entry.getAuthors().get(0);