protected void assertDocumenttypesCfg(DocumentModel model, String documenttypesCfgFile) throws IOException {
        DocumenttypesConfig.Builder documenttypesCfg = new DocumentTypes().produce(model, new DocumenttypesConfig.Builder());
        assertConfigFile(TEST_FOLDER + documenttypesCfgFile, new DocumenttypesConfig(documenttypesCfg).toString());
    }
Utility functions for testing generated configs for reference/imported fields.
config-model/src/test/java/com/yahoo/vespa/documentmodel/AbstractReferenceFieldTestCase.java