### Question:
Exc extends BaseDictionaryElement { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Exc)) { return false; } Exc exc = (Exc) o; if (!exceptions.equals(exc.exceptions)) { return false; } if (!lemma.equals(exc.lemma)) { return false; } if (!pos.equals(exc.pos)) { return false; } return true; } 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 testEquals() throws JWNLException { Assert.assertFalse(testObj.equals(dictionary)); Exc neq = new Exc(dictionary, pos, "al", Arrays.asList(exc1, exc2)); Assert.assertFalse(testObj.equals(neq)); Exc neq2 = new Exc(dictionary, POS.ADJECTIVE, lemma, Arrays.asList(exc1, exc2)); Assert.assertFalse(testObj.equals(neq2)); Exc eq = new Exc(dictionary, pos, lemma, Arrays.asList(exc1, exc2)); Assert.assertTrue(testObj.equals(eq)); }