public void testSortString() {
try {
NBestList n = new NBestList();
n.addResult("r1", 2, 2, 2);
n.addResult("r2", 22, 222, 23);
n.sortDescending();
if (!(n.get(0).getName().equals("r2"))
&& !(n.get(1).getName().equals("r1")))
fail("get() not working as expected!");
}