### Question:
Step { @Override public int hashCode() { return x * y; } Step(int x, int y); int getX(); int getY(); @Override int hashCode(); @Override boolean equals(Object other);  }### Answer:
@Test void testHashCode() { final Step hash = new Step(0, 1); assertHashEquals(hash, new Step(0, 1)); assertHashEquals(hash, new Step(0, 0)); assertHashEquals(hash, new Step(1, 0)); assertHashNotEquals(hash, new Object()); assertHashNotEquals(hash, new Step(1, 1)); }