### Question:
Pointer implements Serializable { @Override public int hashCode() { int result = pointerType.hashCode(); result = 31 * result + (targetIndex != null ? targetIndex.hashCode() : 0); result = 31 * result + source.hashCode(); return result; } Pointer(PointerTarget source, PointerType pointerType, POS targetPOS, long targetOffset, int targetIndex);  Pointer(PointerType pointerType, PointerTarget source, PointerTarget target); String toString(); int getSourceIndex(); PointerType getType(); boolean isLexical(); boolean isSemantic(); boolean isSymmetricTo(Pointer that); PointerTarget getSource(); PointerTarget getTarget(); void setTarget(PointerTarget target); Synset getTargetSynset(); long getTargetOffset(); int getTargetIndex(); POS getTargetPOS(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testHashCode() throws JWNLException { Synset s = new Synset(dictionary, POS.NOUN, 1); Synset t = new Synset(dictionary, POS.NOUN, 2); Pointer p = new Pointer(s, PointerType.ANTONYM, POS.NOUN, 10, 0); Pointer pp = new Pointer(t, PointerType.ANTONYM, POS.NOUN, 20, 0); Assert.assertNotEquals(p.hashCode(), pp.hashCode()); }