### Question:
IndexWord extends BaseDictionaryElement { public int hashCode() { return getLemma().hashCode() ^ getPOS().hashCode(); } protected  IndexWord(Dictionary dictionary, String lemma, POS pos);  IndexWord(Dictionary dictionary, String lemma, POS pos, Synset synset);  IndexWord(Dictionary dictionary, String lemma, POS pos, long[] synsetOffsets); DictionaryElementType getType(); Object getKey(); POS getPOS(); boolean equals(Object object); int hashCode(); String toString(); String getLemma(); long[] getSynsetOffsets(); List<Synset> getSenses(); int sortSenses();  }### Answer:
@Test public void testHashCode() throws JWNLException { IndexWord i = new IndexWord(dictionary, "test", POS.NOUN); IndexWord ii = new IndexWord(dictionary, "rest", POS.NOUN); Assert.assertNotEquals(i.hashCode(), ii.hashCode()); }