}
@Test
public void testNameString() {
try {
NBestList n = new NBestList();
n.addResult("r1", 2, 2, 2);
n.addResult("r2", 22, 222, 23);
String s = n.getNamesString();
if (!(s.equals("r1,r2")))
fail("NameString() not working as expected!");
}
catch (Exception e) {
fail("NameString() not working, due to exceptions: "