NodeValueSortKey extends NodeValue implements Comparable<NodeValueSortKey> { public String getCollation() { return collation; } 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 testGetCollation() { NodeValueSortKey nv = new NodeValueSortKey("", null); assertNull(nv.getCollation()); nv = new NodeValueSortKey("", "fi"); assertEquals("fi", nv.getCollation()); }