protected DerivedConfiguration assertCorrectDeriving(ApplicationBuilder builder, String dirName, DeployLogger logger) throws IOException {
        builder.build(true);
        DerivedConfiguration derived = derive(dirName, null, new TestProperties(), builder, logger);
        assertCorrectConfigFiles(dirName);
        return derived;
    }
Asserts config is correctly derived given a builder.
This will fail if the builder contains multiple search definitions.
config-model/src/test/java/com/yahoo/schema/derived/AbstractExportingTestCase.java