private DerivedConfiguration export(String name, ApplicationBuilder builder, DerivedConfiguration config) throws IOException {
        String path = exportConfig(name, config);
        DerivedConfiguration.exportDocuments(new DocumentManager()
                                             .produce(builder.getModel(), new DocumentmanagerConfig.Builder()), path);
        DerivedConfiguration.exportDocuments(new DocumentTypes().produce(builder.getModel(), new DocumenttypesConfig.Builder()), path);
        DerivedConfiguration.exportQueryProfiles(builder.getQueryProfileRegistry(), path);
        config.exportConstants(path);
        config.exportOnnxModels(path);
        return config;
    }
Superclass of tests needing file comparisons

@author bratseth
config-model/src/test/java/com/yahoo/schema/derived/AbstractExportingTestCase.java