@Test
public void testFeedLinkReferenceEqualsAndHashCode() throws Exception {
String url1 = "http://url1.com";
String url3 = "http://url3.com";
FeedLinkReference feedRef1 = new FeedLinkReference(new URL(url1));
FeedLinkReference feedRef2 = new FeedLinkReference(new URL(url1));
assertEquals(feedRef1, feedRef2);
assertEquals(feedRef1.hashCode(), feedRef2.hashCode());
FeedLinkReference feedRef3 = new FeedLinkReference(new URL(url3));
assertFalse(feedRef1.equals(feedRef3));
assertFalse(feedRef1.hashCode() == feedRef3.hashCode());
}