@Test
public final void testValidateShouldValidateXMLWithXsd() throws SAXException, IOException {

    //GIVEN
    given(schema.newValidator()).willReturn(validator);
    given(domSourceFactory.newDOMSource(document)).willReturn(domSource);
    //WHEN
    underTest.validate(document, schema);
    //THEN
    verify(validator).validate(domSource);
}