@Test
    void testChainContinuation() {
        // Instantiate Name Rewriter
        RewritesConfig config = QueryRewriteSearcherTestUtils.createConfigObj(NAME_REWRITER_CONFIG_PATH);
        HashMap<String, File> fileList = new HashMap<>();
        fileList.put(NameRewriter.NAME_ENTITY_EXPAND_DICT, new File(NAME_ENTITY_EXPAND_DICT_PATH));
        NameRewriter nameRewriter = new NameRewriter(config, fileList);

        // Instantiate Misspell Rewriter
        MisspellRewriter misspellRewriter = new MisspellRewriter();

        // Create market search chain of only misspell rewriter
        Chain<Searcher> marketSearchChain = new Chain<>(US_MARKET_SEARCH_CHAIN, misspellRewriter);

        // Add market search chain to the registry
        SearchChainRegistry registry = new SearchChainRegistry();
        registry.register(marketSearchChain);

        // Instantiate Search Chain Dispatcher Searcher
        SearchChainDispatcherSearcher searchChainDispatcher = new SearchChainDispatcherSearcher();

        // Create a chain containing the dispatcher and the name rewriter
        ArrayList<Searcher> searchers = new ArrayList<>();
        searchers.add(searchChainDispatcher);
        searchers.add(nameRewriter);

        // Create a chain containing only the dispatcher
        Chain<Searcher> mainSearchChain = new Chain<>(searchers);
        Execution execution = new Execution(mainSearchChain, Execution.Context.createContextStub(registry));
        new QueryRewriteSearcherTestUtils(execution);

        IntentModel intentModel = new IntentModel(
                utils.createInterpretation("wills smith", 0.9,
                        true, false),
                utils.createInterpretation("will smith", 1.0,
                        false, true));

        utils.assertRewrittenQuery("?query=willl+smith&type=all&QRWChain=" + US_MARKET_SEARCH_CHAIN + "&" +
                MISSPELL_REWRITER_NAME + "." + RewriterConstants.QSS_RW + "=true&" +
                MISSPELL_REWRITER_NAME + "." + RewriterConstants.QSS_SUGG + "=true&" +
                NAME_REWRITER_NAME + "." + RewriterConstants.REWRITES_AS_UNIT_EQUIV +
                "=true&" +
                NAME_REWRITER_NAME + "." + RewriterConstants.ORIGINAL_AS_UNIT_EQUIV + "=true",
                "query 'OR (AND willl smith) (AND will smith) " +
                        "\"will smith\" \"will smith movies\" " +
                        "\"will smith news\" \"will smith imdb\" " +
                        "\"will smith lyrics\" \"will smith dead\" " +
                        "\"will smith nfl\" \"will smith new movie hancock\" " +
                        "\"will smith biography\"'",
                intentModel);
    }
Searchers down the chain after SearchChainDispatcher
should be executed
container-search/src/test/java/com/yahoo/search/query/rewrite/test/SearchChainDispatcherSearcherTestCase.java