PhivePriority implements Prioritiser<PhivePriorityResult> { @Override public int hashCode() { return Objects.hashCode(PhivePriority.class.getName()); } PhivePriority(PriorityService priorityService); @Override PriorityType getPriorityType(); @Override Stream<PhivePriorityResult> prioritise(List<String> hpoIds, List<Gene> genes); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testHashCode() { PhivePriority phivePriority = new PhivePriority(TestPriorityServiceFactory.TEST_SERVICE); PhivePriority other = new PhivePriority(TestPriorityServiceFactory.TEST_SERVICE); System.out.println(phivePriority.hashCode()); System.out.println(other.hashCode()); assertThat(phivePriority, equalTo(other)); }