StringNode extends LeafNode<String> { @Override public String toString() { return (value == null) ? "(null)" : '"' + StringUtilities.escape(getValue()) + '"'; } StringNode();  StringNode(String value); String value(); @Override String getValue(); @Override String toString(); static String unescapeQuotedString(String string);  }
@Test public void testToString() { StringNode n = new StringNode(); assertThat(n.toString(), is("(null)")); n.setValue("foo"); assertThat(n.toString(), is("\"foo\"")); }