NodeValueSortKey extends NodeValue implements Comparable<NodeValueSortKey> { @Override public String getString() { return string; } 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 testGetString() { NodeValueSortKey nv = new NodeValueSortKey("Casa", "pt-BR"); assertEquals("Casa", nv.asString()); assertEquals("Casa", nv.getString()); }