RSSPublisher publisher = new RSSPublisher();
publisher.setFile(tmpFile.getAbsolutePath());
publisher.setBuildResultsURL("http://cruisecontrol.sourceforge.net");
Feed feed1 = RSSPublisher.getRSSFeed(tmpFile);
Feed feed2 = RSSPublisher.getRSSFeed(tmpFile);
assertNotNull(feed1);
assertNotNull(feed2);
assertEquals(feed1, feed2);
File tmpFile2 = File.createTempFile("test", "tmp");
Feed feed3 = RSSPublisher.getRSSFeed(tmpFile2);
assertNotNull(feed3);
assertFalse(feed2 == feed3);
assertFalse(feed1 == feed3);
tmpFile2.delete();