public <T> T fromXmlPartial(String partial, Class<T> o) throws Exception {
        return fromXmlPartial(toInputStream(partial, UTF_8), o);
    }
@Test
    void shouldLoadBuildPlanFromXmlPartial() throws Exception {
        String buildXmlPartial =
                """
                        <job name="functional">
                          <artifacts>
                            <artifact type="build" src="artifact1.xml" dest="cruise-output" />
                          </artifacts>
                        </job>""";
        JobConfig build = xmlLoader.fromXmlPartial(buildXmlPartial, JobConfig.class);
        assertThat(build.name()).isEqualTo(new CaseInsensitiveString("functional"));
        assertThat(build.artifactTypeConfigs().size()).isEqualTo(1);
    }