@Test
    void search() throws Exception {
        try (
                ApplicationFacade app = new ApplicationFacade(Application.fromBuilder(new Application.Builder().container("default", new Application.Builder.Container()
                        .searcher("foo", MockSearcher.class))))
                ) {
            Result result = app.search("foo", new Query("?query=foo&timeout=20000"));
            assertEquals(1, result.hits().size());
        }
    }
Tests that an application with search chains referencing a content cluster can be constructed.
application/src/test/java/com/yahoo/application/ApplicationTest.java