HasMany extends Relationship<List<T>> implements Iterable<ResourceIdentifier>, Serializable { @Override public int hashCode() { return linkedResources.hashCode(); } HasMany();  HasMany(ResourceIdentifier... resources); @Override List<T> get(Document document); List<T> get(Document document, T defaultValue); ResourceIdentifier get(int position); List<ResourceIdentifier> get(); @Override Iterator<ResourceIdentifier> iterator(); boolean add(ResourceIdentifier identifier); boolean add(String type, String id); boolean remove(ResourceIdentifier identifier); boolean remove(String type, String id); int size(); boolean hasData(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void hashcode_equality() throws Exception { assertEquals(comments(0).hashCode(), comments(0).hashCode()); assertEquals(comments(1).hashCode(), comments(1).hashCode()); assertEquals(comments(2).hashCode(), comments(2).hashCode()); }