@Test
public void compareToTest() {

    NodeId a = new NodeId(1);
    NodeId b = new NodeId(2);
    Assert.assertTrue( a.compareTo(b) < 0);
    Assert.assertTrue( b.compareTo(a) > 0);
    Assert.assertTrue( a.compareTo(a) == 0);
}