### Question:
PairNode extends Node { public Node getValue() { return value; } PairNode(Node key, Node value);  PairNode(GyroParser.PairContext context); Node getKey(); Node getValue(); @Override R accept(NodeVisitor<C, R, X> visitor, C context);  }### Answer:
@Test void getValueNode() { Node valueNode = mock(Node.class); PairNode node = new PairNode(mock(Node.class), valueNode); assertThat(node.getValue()).isEqualTo(valueNode); }