### Question:
IndexWordSet { public void remove(POS p) { indexWords.remove(p); } 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 testRemove() throws JWNLException { IndexWordSet iws = new IndexWordSet("test"); final IndexWord test = new IndexWord(dictionary, "test", POS.NOUN); iws.add(test); Assert.assertEquals(1, iws.size()); Assert.assertEquals(test, iws.getIndexWord(POS.NOUN)); iws.remove(POS.NOUN); Assert.assertEquals(0, iws.size()); }