@Override
    public List<NamedReader> getFiles(Path dir, String fileSuffix, boolean recurse) {
        if (dir.elements().contains(ApplicationPackage.SEARCH_DEFINITIONS_DIR.getName()))
            return List.of(); // No legacy paths
        return getFiles(new File(root, dir.getName()), fileSuffix, recurse);
    }
To avoid either double parsing or supplying a name explicitly
config-model/src/main/java/com/yahoo/config/model/test/MockApplicationPackage.java