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);
Assert.assertEquals(author.getName(), "Mark Pilgrim");
Assert.assertEquals(author.getUri(), new URI("http://example.org/"));
Assert.assertEquals(author.getEmail(), "f8dy@example.com");
Assert.assertEquals(entry.getContributors().get(0).getName(), "Sam Ruby");
Assert.assertEquals(entry.getContributors().get(1).getName(), "Joe Gregorio");
Assert.assertEquals(entry.getContent().getType(), MediaType.APPLICATION_XML_TYPE);
Assert.assertEquals(entry.getContent().getLanguage(), "en");
Assert.assertEquals(entry.getContent().getBase(), new URI("http://diveintomark.org/"));
System.out.println(entry.getContent().getElement().getNodeName());
System.out.println(entry.getContent().getElement().getNamespaceURI());
CustomerAtom cust = entry.getContent().getJAXBObject(CustomerAtom.class);
Assert.assertEquals(cust.getName(), "bill");
}