Priority extends BasicPriority { @Override public int hashCode() { return Objects.hashCode(super.hashCode(), description, statusColor, iconUrl); } Priority(URI self, String name, String statusColor, String description, URI iconUri); String getStatusColor(); String getDescription(); URI getIconUri(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testHashCode() throws Exception { assertEquals(P1.hashCode(), P2.hashCode()); }