@Test
public void testCompare() throws Exception {

    final List<SnomedConcept> sorted = new ArrayList<>(TestData.TEST_DATA);
    Collections.sort(sorted, new SnomedCodeComparator());
    for (int i = 0; i < sorted.size(); i++) {
        assertEquals(sorted.get(i).candidateScore, i);
    }
}