@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 shouldLoadDirectoryWithOnePipelineGroup() throws Exception{
        GoConfigMother mother = new GoConfigMother();
        PipelineConfigs group1 = mother.cruiseConfigWithOnePipelineGroup().getGroups().get(0);

        helper.addFileWithPipelineGroup("group1.gocd.xml", group1);

        PartialConfig part = xmlPartialProvider.load(tmpFolder, mock(PartialConfigLoadContext.class));
        PipelineConfigs groupRead = part.getGroups().get(0);
        assertThat(groupRead,is(group1));
        assertThat(groupRead.size(),is(group1.size()));
        assertThat(groupRead.get(0),is(group1.get(0)));
    }