### Question:
Word extends PointerTarget { public List<Pointer> getPointers() { List<Pointer> result = new ArrayList<>(0); for (Pointer pointer : getSynset().getPointers()) { if (this.equals(pointer.getSource())) { result.add(pointer); } } return result; } Word(Dictionary dictionary, Synset synset, String lemma); boolean equals(Object object); int hashCode(); String toString(); int getLexId(); void setLexId(int lexId); Synset getSynset(); POS getPOS(); @Override int getIndex(); String getLemma(); int getUseCount(); void setUseCount(int useCount); List<Pointer> getPointers(); String getSenseKey(); String getSenseKeyWithAdjClass(); int getSenseNumber();  }### Answer:
@Test public void testGetPointers() { Assert.assertEquals(0, word.getPointers().size()); Synset synset = word.getSynset(); synset.getPointers().add(new Pointer(PointerType.ANTONYM, synset, synset)); Assert.assertEquals(0, word.getPointers().size()); synset.getPointers().add(new Pointer(PointerType.ANTONYM, word, synset)); Assert.assertEquals(1, word.getPointers().size()); }