### Question:
Token extends Symbol { public void setState(int state) { this.state = state; } 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 testSetState() { Token token = new Token(); assertEquals("wrong state", LRState.INITIAL_STATE, token.getState()); token.setState(33); assertEquals("wrong state", 33, token.getState()); }