public static Context createContextStub(SearchChainRegistry searchChainRegistry,
                                                IndexFacts indexFacts,
                                                SchemaInfo schemaInfo,
                                                Linguistics linguistics) {
            return new Context(searchChainRegistry != null ? searchChainRegistry : new SearchChainRegistry(),
                               indexFacts != null ? indexFacts : new IndexFacts(),
                               schemaInfo,
                               null,
                               new RendererRegistry(Runnable::run),
                               linguistics != null ? linguistics : new SimpleLinguistics(),
                               Executors.newSingleThreadExecutor());
        }
Creates a Context instance where everything except the given arguments is empty. This is for unit testing.
container-search/src/main/java/com/yahoo/search/searchchain/Execution.java