public <T> T fromXmlPartial(String partial, Class<T> o) throws Exception {
        return fromXmlPartial(toInputStream(partial, UTF_8), o);
    }
@Test
    void shouldLoadAllowOnlySuccessOnManualApprovalType() throws Exception {
        Approval approval = xmlLoader.fromXmlPartial("<approval type=\"manual\" allowOnlyOnSuccess=\"true\" />", Approval.class);

        assertThat(approval.getType()).isEqualTo("manual");
        assertThat(approval.isAllowOnlyOnSuccess()).isEqualTo(true);
    }