}
public void testAtomGETBlogEntry() throws Exception {
RestClient client = new RestClient();
Resource resource = client.resource(BASE_URI+"/blogs/0/entries/0");
AtomEntry entry = resource.accept("application/atom+xml").get(AtomEntry.class);
assertNotNull(entry.getAuthors());
assertEquals(1, entry.getAuthors().size());
AtomPerson author = entry.getAuthors().get(0);
assertNotNull(author);
assertEquals("Blog Admin", author.getName());
assertEquals("winkblogadmin@wink.blog.com", author.getEmail());
assertEquals("0", entry.getId());
assertEquals("Welcome to the wink developer blog!!", entry.getContent().getValue());
assertEquals("welcomePosting", entry.getTitle().getValue());
assertEquals(0, entry.getLinks().size());
resource = client.resource(BASE_URI+"/blogs/0/entries/1");
entry = resource.accept("application/atom+xml").get(AtomEntry.class);
assertNotNull(entry.getAuthors());
assertEquals(1, entry.getAuthors().size());
author = entry.getAuthors().get(0);
assertNotNull(author);
assertEquals("Blog Admin", author.getName());
assertEquals("winkblogadmin@wink.blog.com", author.getEmail());
assertEquals("1", entry.getId());
assertEquals("Wink developers,\n\nInstructions on how to set up the wink development have been posted to the wink wiki. Happy wink development!\n\nw--inkblogadmin", entry.getContent().getValue());
assertEquals("Wink Development Env", entry.getTitle().getValue());
assertEquals(1, entry.getLinks().size());
List<AtomLink> comments = entry.getLinks();
assertEquals(BASE_URI+"/blogs/0/entries/1/comments/0", comments.get(0).getHref());
resource = client.resource(BASE_URI+"/blogs/1/entries/2");
entry = resource.accept("application/atom+xml").get(AtomEntry.class);
assertNotNull(entry.getAuthors());
assertEquals(1, entry.getAuthors().size());
author = entry.getAuthors().get(0);
assertNotNull(author);
assertEquals("Eager User", author.getName());
assertEquals("winkuser@wink.blog.com", author.getEmail());
assertEquals("2", entry.getId());
assertEquals("I hear that the 0.1 SNAPSHOT will be available soon! I can't wait!!!", entry.getContent().getValue());
assertEquals("0.1 SNAPSHOT", entry.getTitle().getValue());
comments = entry.getLinks();
assertEquals(1, entry.getLinks().size());
assertEquals(BASE_URI+"/blogs/1/entries/2/comments/0", comments.get(0).getHref());
}