}
@Test
public void testDistance() {
try {
NBestList n = new NBestList();
n.addResult("r1", 2, 2, 2);
n.addResult("r2", 22, 222, 23);
if (n.getDistance() != 2)
fail("getDistance() not working as expected!");
}
catch (Exception e) {
fail("getDistance() not working, due to exceptions: "
+ e.getMessage());