### Question:
IndexWordSet { @Override public boolean equals(Object object) { return (object instanceof IndexWordSet) && getLemma().equals(((IndexWordSet) object).getLemma()); } IndexWordSet(String lemma); void add(IndexWord word); void remove(POS p); int size(); IndexWord getIndexWord(POS p); IndexWord[] getIndexWordArray(); Collection<IndexWord> getIndexWordCollection(); Set<POS> getValidPOSSet(); boolean isValidPOS(POS pos); int getSenseCount(POS pos); String toString(); String getLemma(); @Override boolean equals(Object object); @Override int hashCode();  }### Answer:
@Test public void testEquals() throws JWNLException { IndexWordSet iws = new IndexWordSet("test"); IndexWordSet iws2 = new IndexWordSet("test"); IndexWordSet iws3 = new IndexWordSet("test2"); Assert.assertTrue(iws.equals(iws2)); Assert.assertFalse(iws.equals(iws3)); }