private DerivedConfiguration derive(String dirName,
                                        String schemaName,
                                        TestProperties properties,
                                        ApplicationBuilder builder,
                                        DeployLogger logger) throws IOException {
        DerivedConfiguration config = new DerivedConfiguration(new DeployState.Builder()
                                                                              .properties(properties)
                                                                              .deployLogger(logger)
                                                                              .rankProfileRegistry(builder.getRankProfileRegistry())
                                                                              .queryProfiles(builder.getQueryProfileRegistry())
                                                                              .build(), builder.getSchema(schemaName), SchemaInfo.IndexMode.INDEX);
        return export(dirName, builder, config);
    }
Superclass of tests needing file comparisons

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