@Test
public void testCompareTo() {

    final String languageTag = "pt";
    NodeValueSortKey nv = new NodeValueSortKey("Bonito", languageTag);
    assertEquals(1, nv.compareTo(new NodeValueSortKey("Bonita", languageTag)));
    assertEquals(-1, nv.compareTo(new NodeValueSortKey("Bonitos", languageTag)));
    // comparing string, regardless of the collations
    assertEquals(1, nv.compareTo(new NodeValueSortKey("Bonita", "es")));
    assertEquals(0, nv.compareTo(new NodeValueSortKey("Bonito", "es")));
}