public void testEntityLinkerWithWrongOrder() throws Exception {
LanguageProcessingConfig tpc = new LanguageProcessingConfig();
tpc.setLinkedLexicalCategories(LanguageProcessingConfig.DEFAULT_LINKED_LEXICAL_CATEGORIES);
tpc.setLinkedPos(Collections.EMPTY_SET);
tpc.setIgnoreChunksState(true); //to emulate pre STANBOL-1211
EntityLinkerConfig config = new EntityLinkerConfig();
config.setMinFoundTokens(2);//this is assumed by this test
config.setRedirectProcessingMode(RedirectProcessingMode.FOLLOW);
EntityLinker linker = new EntityLinker(TEST_ANALYSED_TEXT_WO,"en",
tpc, searcher, config, labelTokenizer);
linker.process();
Map<String,List<String>> expectedResults = new HashMap<String,List<String>>();
expectedResults.put("Marshall Patrick", new ArrayList<String>(