### Question:
Token extends Symbol { public void setPosition(Position position) { this.position = position; } Token();  Token(Object data);  Token(Symbol symbol, Object data);  Token(Symbol symbol, Object data, Position position); void appendData(String moreData); Reduction asReduction(); String asString(); int getState(); Object getData(); Position getPosition(); void setState(int state); void setData(Object data); void setPosition(Position position); void setSymbol(Symbol symbol);  }### Answer:
@Test public void testSetPosition() { Position newPosition = new Position(2,4); Token token = new Token(new Symbol(), null); assertNull(token.getPosition()); token.setPosition(newPosition); assertEquals("wrong row", newPosition.getLine(), token.getPosition().getLine()); assertEquals("wrong col", newPosition.getColumn(), token.getPosition().getColumn()); token.setPosition(null); assertNull(token.getPosition()); }