ShortPathPart { @Override public int hashCode() { return Objects.hash(position, inLogicalLevel); } ShortPathPart(int position, int inLogicalLevel);  ShortPathPart(int position, SplitLevel inLogicalLevel); int getPosition(); SplitLevel getInLogicalLevel(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testHashCode() { ShortPathPart part1 = new ShortPathPart(1, 4); ShortPathPart part2 = new ShortPathPart(1, 4); Tests.testHashCode(part1, part2); }