public <T> T fromXmlPartial(String partial, Class<T> o) throws Exception {
        return fromXmlPartial(toInputStream(partial, UTF_8), o);
    }
@Test
    void shouldLoadGetFromSvnPartialForDir() throws Exception {
        String buildXmlPartial =
                """
                        <jobs>
                          <job name="functional">
                             <tasks>
                                 <fetchartifact artifactOrigin='gocd' stage='dev' job='unit' srcdir='dist' dest='lib' />
                              </tasks>
                            </job>
                        </jobs>""";

        JobConfigs jobs = xmlLoader.fromXmlPartial(buildXmlPartial, JobConfigs.class);
        JobConfig job = jobs.first();
        Tasks fetch = job.tasks();
        assertThat(fetch.size()).isEqualTo(1);
        FetchTask task = (FetchTask) fetch.first();
        assertThat(task.getStage()).isEqualTo(new CaseInsensitiveString("dev"));
        assertThat(task.getJob().toString()).isEqualTo("unit");
        assertThat(task.getSrc()).isEqualTo("dist");
        assertThat(task.getDest()).isEqualTo("lib");
    }