NodeValueSortKey extends NodeValue implements Comparable<NodeValueSortKey> { @Override public String toString() { if (getNode() != null) { return FmtUtils.stringForNode(getNode()) ; } return "'"+getString()+"'"; } NodeValueSortKey(final String string, final String collation);  NodeValueSortKey(final String string, final String collation, Node n); @Override boolean isSortKey(); @Override NodeValueSortKey getSortKey(); @Override String getString(); @Override String asString(); String getCollation(); @Override void visit(NodeValueVisitor visitor); @Override String toString(); @Override int compareTo(NodeValueSortKey other);  }
@Test public void testToString() { NodeValueSortKey nv = new NodeValueSortKey("Tutte", "it"); assertEquals("'Tutte'", nv.toString()); }