### Question:
PointerTargetNode implements Node { public boolean isLexical() { return target instanceof Word; } PointerTargetNode(PointerTarget target);  PointerTargetNode(PointerTarget target, PointerType type); void setType(PointerType type); PointerType getType(); PointerTarget getPointerTarget(); boolean isLexical(); Synset getSynset(); Word getWord(); boolean equals(Object object); String toString(); int hashCode(); PointerTargetNode clone(); PointerTargetNode deepClone();  }### Answer:
@Test public void testIsLexical() throws JWNLException { Synset s1 = new Synset(null, POS.NOUN); PointerTargetNode p1 = new PointerTargetNode(s1, PointerType.ANTONYM); Synset s2 = new Synset(null, POS.NOUN); Word w2 = new Word(null, s2, "test"); PointerTargetNode p2 = new PointerTargetNode(w2, PointerType.ANTONYM); Assert.assertFalse(p1.isLexical()); Assert.assertTrue(p2.isLexical()); Assert.assertEquals(s1, p1.getSynset()); Assert.assertEquals(s2, p2.getSynset()); Assert.assertEquals(s1, p1.getPointerTarget()); Assert.assertEquals(w2, p2.getPointerTarget()); Assert.assertNull(p1.getWord()); Assert.assertEquals(w2, p2.getWord()); Assert.assertFalse(p1.equals(p2)); Assert.assertFalse(p1.hashCode() == p2.hashCode()); Assert.assertNotNull(p1.toString()); }