@Override
    public void process(CruiseConfig cruiseConfig) {
        if (!cruiseConfig.getPartials().isEmpty()) {
            cruiseConfig.merge(cruiseConfig.getPartials(), false);
        }
    }
@Test
    public void shouldMergePartialsSetOnConfig() {
        final PartialConfig partialConfig = PartialConfigMother.withPipeline("partial");
        partialConfig.setOrigin(new RepoConfigOrigin(configRepoConfig, "sha-1"));
        ConfigRepoPartialPreprocessor preprocessor = new ConfigRepoPartialPreprocessor();
        PipelineConfig pipelineInMain = PipelineConfigMother.createPipelineConfig("main_pipeline", "stage", "job");
        BasicCruiseConfig cruiseConfig = new BasicCruiseConfig(new BasicPipelineConfigs(pipelineInMain));
        cruiseConfig.setConfigRepos(reposConfig);
        cruiseConfig.setPartials(List.of(partialConfig));
        preprocessor.process(cruiseConfig);
        assertThat(cruiseConfig.getAllPipelineNames().contains(pipelineInMain.name()), is(true));
        assertThat(cruiseConfig.getAllPipelineNames().contains(partialConfig.getGroups().first().get(0).name()), is(true));
    }