@Test
    void container_and_referenced_content() {
        try (Application application =
                Application.fromApplicationPackage(new File("src/test/app-packages/withcontent"), Networking.disable)) {
            Result result = application.getJDisc("default").search().process(new ComponentSpecification("default"),
                    new Query("?query=substring:foobar&timeout=20000"));
            assertEquals("WEAKAND(100) (AND substring:fo substring:oo substring:ob substring:ba substring:ar)",
                    result.hits().get("hasQuery").getQuery().getModel().getQueryTree().toString());
        }
    }
Tests that an application with search chains referencing a content cluster can be constructed.
application/src/test/java/com/yahoo/application/ApplicationTest.java