Abdera abdera = new Abdera();
Document<Feed> doc = abdera.getParser().parse(rdr);
Feed feed = doc.getRoot();
assertTrue(SharingHelper.hasSharing(feed));
Sharing sharing = SharingHelper.getSharing(feed, false);
assertNotNull(sharing);
Date since = AtomDate.parse("2005-02-13T18:30:02Z");
Date until = AtomDate.parse("2005-05-23T18:30:02Z");
assertEquals(since, sharing.getSince());
assertEquals(until, sharing.getUntil());
assertEquals(2, sharing.getRelated().size());
Related rel = sharing.getRelated().get(0);
assertEquals("http://example.com/all.xml", rel.getLink().toString());
assertEquals(Related.Type.COMPLETE, rel.getType());
rel = sharing.getRelated().get(1);
assertEquals("http://example.com/B.xml", rel.getLink().toString());
assertEquals(Related.Type.AGGREGATED, rel.getType());
Entry entry = feed.getEntries().get(0);
Sync sync = SharingHelper.getSync(entry, false);