### Question:
Reduction extends ArrayList<Token> { public void setParent(Production parent) { this.parent = parent; } Reduction();  Reduction(int size); void execute(); Production getParent(); void setParent(Production parent); Variable getValue(); void setValue(Variable value);  }### Answer:
@Test public void testSetParent() { Production production = new Production(new Symbol(), 5); Reduction reduction = new Reduction(); reduction.setParent(production); assertEquals("wrong value", production, reduction.getParent()); }