private DerivedConfiguration derive(String dirName,
                                        String schemaName,
                                        TestProperties properties,
                                        DeployLogger logger) throws IOException, ParseException {
        File toDir = new File(tempDir + dirName);
        toDir.mkdirs();
        deleteContent(toDir);

        ApplicationBuilder builder = ApplicationBuilder.createFromDirectory(schemaRoot + dirName + "/",
                                                                            new MockFileRegistry(),
                                                                            logger,
                                                                            properties);
        return derive(dirName, schemaName, properties, builder, logger);
    }
Superclass of tests needing file comparisons

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