@Test
    void document_type() throws Exception {
        try (
                Application app = Application.fromBuilder(new Application.Builder()
                        .documentType("test", new String(this.getClass().getResourceAsStream("/test.sd").readAllBytes(), StandardCharsets.UTF_8))
                        .container("default", new Application.Builder.Container()
                                .documentProcessor(MockDocproc.class)
                                .config(new MockApplicationConfig(new MockApplicationConfig.Builder().mystruct(new MockApplicationConfig.Mystruct.Builder().id("foo").value("bar"))))))
                ) {
            Map<String, DocumentType> typeMap = app.getJDisc("jdisc").documentProcessing().getDocumentTypes();
            assertNotNull(typeMap);
            assertTrue(typeMap.containsKey("test"));
        }
    }
Tests that an application with search chains referencing a content cluster can be constructed.
application/src/test/java/com/yahoo/application/ApplicationTest.java