### Question:
IndexWord extends BaseDictionaryElement { public DictionaryElementType getType() { return DictionaryElementType.INDEX_WORD; } 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 testType() throws JWNLException { IndexWord iw = new IndexWord(dictionary, "test", POS.NOUN, new long[]{1}); Assert.assertEquals(DictionaryElementType.INDEX_WORD, iw.getType()); }