### Question:
TraversalState { public N getNode() { return node; } @SuppressWarnings("unchecked")  TraversalState(N node); N getNode(); boolean hasNextChild(); N nextChild();  }### Answer:
@Test public void getNode() { final TraversalState<String, Node<String>> state = new TraversalState<>(node); assertEquals(node, state.getNode()); }
@Test public void getStructuralNode() { final TraversalState<String, MutableSettableStructuredNode<String>> state = new TraversalState<>(structuralNode); assertEquals(structuralNode, state.getNode()); }