NodeValueSortKey extends NodeValue implements Comparable<NodeValueSortKey> { @Override protected Node makeNode() { return NodeFactory.createLiteral(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 testMakeNode() { NodeValueSortKey nv = new NodeValueSortKey("Casa", "pt-BR"); Node n = nv.makeNode(); assertTrue(n.isLiteral()); assertEquals("Casa", n.getLiteral().toString()); }