### Question:
Pointer implements Serializable { public boolean isSymmetricTo(Pointer that) throws JWNLException { return null != pointerType.getSymmetricType() && that.getType().equals(pointerType.getSymmetricType()) && that.getTarget().equals(getSource()) && that.getSource().equals(getTarget()); } Pointer(PointerTarget source, PointerType pointerType, POS targetPOS, long targetOffset, int targetIndex);  Pointer(PointerType pointerType, PointerTarget source, PointerTarget target); String toString(); int getSourceIndex(); PointerType getType(); boolean isLexical(); boolean isSemantic(); boolean isSymmetricTo(Pointer that); PointerTarget getSource(); PointerTarget getTarget(); void setTarget(PointerTarget target); Synset getTargetSynset(); long getTargetOffset(); int getTargetIndex(); POS getTargetPOS(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testIsSymmetricTrue() throws JWNLException { Synset s = new Synset(dictionary, POS.NOUN, 1); Synset t = new Synset(dictionary, POS.NOUN, 2); Pointer p = new Pointer(PointerType.ANTONYM, s, t); Pointer pp = new Pointer(PointerType.ANTONYM, t, s); Assert.assertTrue(p.isSymmetricTo(pp)); Assert.assertTrue(pp.isSymmetricTo(p)); }
@Test public void testIsSymmetricFalse() throws JWNLException { Synset s = new Synset(dictionary, POS.NOUN, 1); Synset t = new Synset(dictionary, POS.NOUN, 2); Pointer p = new Pointer(PointerType.ANTONYM, s, t); Pointer pp = new Pointer(PointerType.ANTONYM, s, t); Assert.assertFalse(p.isSymmetricTo(pp)); Assert.assertFalse(pp.isSymmetricTo(p)); }