### Question:
Synset extends PointerTarget implements DictionaryElement { public void setGloss(String gloss) { if (null == gloss) { if (null != dictionary) { throw new IllegalArgumentException(dictionary.getMessages().resolveMessage("DICTIONARY_EXCEPTION_048")); } else { throw new IllegalArgumentException("Gloss must be not null"); } } this.gloss = gloss; } Synset(Dictionary dictionary, POS pos);  Synset(Dictionary dictionary, POS pos, long offset); DictionaryElementType getType(); Object getKey(); POS getPOS(); boolean equals(Object object); int hashCode(); String toString(); @Override Synset getSynset(); @Override int getIndex(); List<Pointer> getPointers(); String getGloss(); void setGloss(String gloss); List<Word> getWords(); long getOffset(); void setOffset(long offset); boolean isAdjectiveCluster(); void setIsAdjectiveCluster(boolean isAdjectiveCluster); String[] getVerbFrames(); BitSet getVerbFrameFlags(); void setVerbFrameFlags(BitSet verbFrameFlags); int[] getVerbFrameIndices(); boolean containsWord(String lemma); int indexOfWord(String lemma); long getLexFileNum(); void setLexFileNum(long lexFileNum); String getLexFileName(); @Override void setDictionary(Dictionary dictionary);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testSetGloss() throws JWNLException { testObj.setGloss(null); }