}
public void testFetchFeedConditionally() throws Exception {
FeedFetcher feedFetcher = PlanetFactory.getPlanet().getFeedFetcher();
// fetch feed
Subscription sub = feedFetcher.fetchSubscription(feed_url);
assertNotNull(sub);
assertEquals(feed_url, sub.getFeedURL());
assertEquals("http://rollerweblogger.org/roller/", sub.getSiteURL());
assertEquals("Blogging Roller", sub.getTitle());
assertNotNull(sub.getLastUpdated());
assertTrue(sub.getEntries().size() > 0);
// now do a conditional fetch and we should get back null
Subscription updatedSub = feedFetcher.fetchSubscription(feed_url, sub.getLastUpdated());
assertNull(updatedSub);
}