public <T> T fromXmlPartial(String partial, Class<T> o) throws Exception {
        return fromXmlPartial(toInputStream(partial, UTF_8), o);
    }
@Test
    void shouldLoadPartialConfigWithEnvironment() throws Exception {
        String partialConfigWithPipeline = configWithEnvironments(
                """
                        <environments>
                          <environment name='uat'>
                             <pipelines>
                                 <pipeline name='pipeline1' />
                             </pipelines>
                          </environment>
                          <environment name='prod' />
                        </environments>""", CONFIG_SCHEMA_VERSION);
        PartialConfig partialConfig = xmlLoader.fromXmlPartial(partialConfigWithPipeline, PartialConfig.class);
        EnvironmentsConfig environmentsConfig = partialConfig.getEnvironments();
        assertThat(environmentsConfig.size()).isEqualTo(2);
        assertThat(environmentsConfig.get(0).containsPipeline(new CaseInsensitiveString("pipeline1"))).isTrue();
        assertThat(environmentsConfig.get(1).getPipelines().size()).isEqualTo(0);
    }