### Question:
Exc extends BaseDictionaryElement { @Override public int hashCode() { int result = pos.hashCode(); result = 31 * result + lemma.hashCode(); result = 31 * result + exceptions.hashCode(); return result; } Exc(Dictionary dictionary, POS pos, String lemma, List<String> exceptions); DictionaryElementType getType(); POS getPOS(); Object getKey(); String getLemma(); List<String> getExceptions(); @Override boolean equals(Object o); @Override int hashCode(); String toString();  }### Answer:
@Test public void testHashCode() throws JWNLException { Exc neq = new Exc(dictionary, pos, "al", Arrays.asList(exc1, exc2)); Assert.assertTrue(neq.hashCode() != testObj.hashCode()); }