public <T> T fromXmlPartial(String partial, Class<T> o) throws Exception {
        return fromXmlPartial(toInputStream(partial, UTF_8), o);
    }
@Test
    void shouldLoadStageFromXmlPartial() throws Exception {
        String stageXmlPartial =
                """
                        <stage name="mingle">
                          <jobs>
                            <job name="functional">
                              <artifacts>
                                <log src="artifact1.xml" dest="cruise-output" />
                              </artifacts>
                            </job>
                          </jobs>
                        </stage>
                        """;
        StageConfig stage = xmlLoader.fromXmlPartial(stageXmlPartial, StageConfig.class);
        assertThat(stage.name()).isEqualTo(new CaseInsensitiveString("mingle"));
        assertThat(stage.allBuildPlans().size()).isEqualTo(1);
        assertThat(stage.jobConfigByInstanceName("functional", true)).isNotNull();
    }