public <T> T fromXmlPartial(String partial, Class<T> o) throws Exception {
        return fromXmlPartial(toInputStream(partial, UTF_8), o);
    }
@Test
    void shouldLoadIgnoresFromP4Partial() throws Exception {
        String gitPartial =
                """
                        <p4 port="localhost:8080">
                                    <filter>
                                        <ignore pattern="x"/>
                                    </filter>
                         <view></view>
                        </p4>""";
        MaterialConfig p4Material = xmlLoader.fromXmlPartial(gitPartial, P4MaterialConfig.class);
        Filter parsedFilter = p4Material.filter();
        Filter expectedFilter = new Filter();
        expectedFilter.add(new IgnoredFiles("x"));
        assertThat(parsedFilter).isEqualTo(expectedFilter);
    }