"for selection "+linkedEntity.getSelectedText(),
linkedEntity.getSuggestions().size(),
expectedSuggestions.size());
double score = linkedEntity.getScore();
for(int i=0;i<expectedSuggestions.size();i++){
Suggestion suggestion = linkedEntity.getSuggestions().get(i);
assertEquals("Expecced Suggestion at Rank "+i+" expected: "+
expectedSuggestions.get(i)+" suggestion: "+
suggestion.getRepresentation().getId(),
expectedSuggestions.get(i),
suggestion.getRepresentation().getId());
assertTrue("Score of suggestion "+i+"("+suggestion.getScore()+
" > as of the previous one ("+score+")",
score >= suggestion.getScore());
score = suggestion.getScore();
}
}
}