### Question:
ConceptLinkingServiceImpl implements InitializingBean, ConceptLinkingService { @Override public List<KBHandle> disambiguate(KnowledgeBase aKB, String aConceptScope, ConceptFeatureValueType aValueType, String aQuery, String aMention, int aMentionBeginOffset, CAS aCas) { Set<KBHandle> candidates = generateCandidates(aKB, aConceptScope, aValueType, aQuery, aMention); return rankCandidates(aQuery, aMention, candidates, aCas, aMentionBeginOffset); } @Autowired  ConceptLinkingServiceImpl(KnowledgeBaseService aKbService,
            EntityLinkingPropertiesImpl aProperties,
            RepositoryProperties aRepoProperties,
            @Lazy @Autowired(required = false) List<EntityRankingFeatureGenerator> 
                    aFeatureGenerators); @Override void afterPropertiesSet(); @EventListener void onContextRefreshedEvent(ContextRefreshedEvent aEvent); Set<KBHandle> generateCandidates(KnowledgeBase aKB, String aConceptScope,
            ConceptFeatureValueType aValueType, String aQuery, String aMention); @Override List<KBHandle> disambiguate(KnowledgeBase aKB, String aConceptScope,
            ConceptFeatureValueType aValueType, String aQuery, String aMention,
            int aMentionBeginOffset, CAS aCas); @Override List<KBHandle> rankCandidates(String aQuery, String aMention, Set<KBHandle> aCandidates,
            CAS aCas, int aBegin); @Override List<KBHandle> getLinkingInstancesInKBScope(String aRepositoryId, String aConceptScope,
            ConceptFeatureValueType aValueType, String aQuery, String aMention,
            int aMentionBeginOffset, CAS aCas, Project aProject); @Override List<KBHandle> searchItems(KnowledgeBase aKB, String aQuery);  }### Answer:
@Test public void thatLuceneSailIndexedConceptIsRetrievableWithFullTextSearch() throws Exception { kbService.registerKnowledgeBase(kb, kbService.getNativeConfig()); importKnowledgeBase("data/pets.ttl"); List<KBHandle> handles = sut.disambiguate(kb, null, ANY_OBJECT, "soc", null, 0, null); assertThat(handles.stream().map(KBHandle::getName)) .as("Check whether \"Socke\" has been retrieved.") .contains("Socke"); }
@Test public void thatAddedLuceneSailIndexedConceptIsRetrievableWithFullTextSearch() throws Exception { kbService.registerKnowledgeBase(kb, kbService.getNativeConfig()); importKnowledgeBase("data/pets.ttl"); KBConcept concept = new KBConcept(); concept.setName("manatee"); kbService.createConcept(kb, concept); List<KBHandle> handles = sut.disambiguate(kb, null, ANY_OBJECT, "man", null, 0, null); assertThat(handles.stream().map(KBHandle::getName)) .as("Check whether \"manatee\" has been retrieved.") .contains("manatee"); }