public GoConfigHolder loadConfigHolder(final String content, Callback callback) throws Exception {
        CruiseConfig configForEdit;
        CruiseConfig config;
        LOGGER.debug("[Config Save] Loading config holder");
        configForEdit = deserializeConfig(content);
        if (callback != null) callback.call(configForEdit);
        config = preprocessAndValidate(configForEdit);

        return new GoConfigHolder(config, configForEdit);
    }
@Test
    void shouldNotAllowEmptyPipelineTemplates() {
        String content = configWithTemplates(
                """
                        <templates>
                          <pipeline name='erbshe'>
                          </pipeline>
                        </templates>""");

        assertThatThrownBy(() -> xmlLoader.loadConfigHolder(content))
            .as("should NotAllowEmptyPipelineTemplates")
            .hasMessageContaining("The content of element 'pipeline' is not complete. One of '{authorization, stage}' is expected");
    }