NullNode extends Node { @Override public NodeType getType() { return NodeType.NULL; } NullNode(SourceLocation sourceLocation); @Override NodeType getType(); @Override R accept(NodeVisitor<R> visitor); @Override NullNode expectNullNode(String errorMessage); @Override Optional<NullNode> asNullNode(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void getType() { NodeType type = NullNode.nullNode().getType(); assertEquals(NodeType.NULL, type); assertEquals("null", type.toString()); }