public static ApplicationPackage fromSearchDefinitionAndRootDirectory(String dir) {
        return new MockApplicationPackage.Builder()
                .withRoot(new File(dir))
                .withEmptyHosts()
                .withEmptyServices()
                .withSchemaDir(dir).build();
    }
To avoid either double parsing or supplying a name explicitly
config-model/src/main/java/com/yahoo/config/model/test/MockApplicationPackage.java