@Override
    public PartialConfig load(File configRepoCheckoutDirectory, PartialConfigLoadContext context) {
        File[] allFiles = getFiles(configRepoCheckoutDirectory, context);

        // if context had changed files list then we could parse only new content

        PartialConfig[] allFragments = parseFiles(allFiles);

        PartialConfig partialConfig = new PartialConfig();

        collectFragments(allFragments, partialConfig);

        return partialConfig;
    }
@Test
    public void shouldFailToLoadDirectoryWithNonXmlFormat() throws Exception {
        String content = """
                <?xml version="1.0" encoding="utf-8"?>
                <cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion="38">
                /cruise>""";// missing '<'

        helper.writeFileWithContent("bad.gocd.xml",content);

        try {
            PartialConfig part = xmlPartialProvider.load(tmpFolder, mock(PartialConfigLoadContext.class));
        } catch (RuntimeException ex) {
            return;
        }
        fail("should have thrown");
    }