}
public void testAtomGETBlog() throws Exception {
RestClient client = new RestClient();
Resource resource = client.resource(BASE_URI+"/blogs/0");
AtomFeed feed = resource.accept("application/atom+xml").get(AtomFeed.class);
assertEquals("0", feed.getId());
assertEquals("wink-developer-blog", feed.getTitle().getValue());
List<AtomLink> expectedLinks = new ArrayList<AtomLink>();
AtomLink link = new AtomLink();
link.setHref(BASE_URI+"/blogs/0/entries/0");
expectedLinks.add(link);
link = new AtomLink();
link.setHref(BASE_URI+"/blogs/0/entries/1");
expectedLinks.add(link);
List<AtomLink> actual = feed.getLinks();
assertEquals(expectedLinks.size(), actual.size());
for(int i = 0; i < actual.size(); ++i)
assertEquals(expectedLinks.get(i).getHref(), actual.get(i).getHref());
client = new RestClient();
resource = client.resource(BASE_URI+"/blogs/1");
feed = resource.accept("application/atom+xml").get(AtomFeed.class);
assertEquals("1", feed.getId());
assertEquals("wink-user-blog", feed.getTitle().getValue());
expectedLinks = new ArrayList<AtomLink>();
link = new AtomLink();
link.setHref(BASE_URI+"/blogs/1/entries/2");
expectedLinks.add(link);
actual = feed.getLinks();
assertEquals(expectedLinks.size(), actual.size());
for(int i = 0; i < actual.size(); ++i)
assertEquals(expectedLinks.get(i).getHref(), actual.get(i).getHref());
}