@Test
public void testFindMatchingDescriptionsInHierachy() throws FileNotFoundException {

    //load a dummy concept which has duplicated description term with its parent
    repository.addConcept(FileLoaderTestUtils.fileToObject("data/1234567890.json", DroolsConcept.class));
    DroolsConcept testConcept = repository.getConcept("1234567890");
    DroolsDescription testDescription = null;
    for (DroolsDescription droolsDescription : testConcept.getDescriptions()) {
        testDescription = droolsDescription;
    }
    Set<Description> results = droolsDescriptionService.findMatchingDescriptionInHierarchy(testConcept, testDescription);
    Assert.assertEquals(1, results.size());
    for (Description result : results) {
        Assert.assertEquals("1204236014", result.getId());
    }
}