### Question:
LevelRowCol { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + HashCodeHelper.getHashCode(myCol); result = prime * result + HashCodeHelper.getHashCode(myLevel); result = prime * result + HashCodeHelper.getHashCode(myRow); return result; } LevelRowCol(int level, int row, int col); @Override boolean equals(Object obj); int getCol(); int getLevel(); int getRow(); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testHashCode() { assertTrue(new LevelRowCol(4, 5, 6).hashCode() == new LevelRowCol(4, 5, 6).hashCode()); assertFalse(new LevelRowCol(4, 5, 6).hashCode() == new LevelRowCol(3, 5, 6).hashCode()); assertFalse(new LevelRowCol(4, 5, 6).hashCode() == new LevelRowCol(4, 4, 6).hashCode()); assertFalse(new LevelRowCol(4, 5, 6).hashCode() == new LevelRowCol(4, 5, 7).hashCode()); }