@Test(expectedExceptions = DescriptorValidationFailedException.class)
public void testParseSchemaShouldThrowDescriptorValidationFailedExceptionWhenSchemaCanNotBeParsed() throws SAXException {

    //GIVEN
    given(schemaFactoryBuilder.buildSchemaFactory()).willReturn(schemaFactory);
    given(schemaFactory.newSchema(url)).willThrow(new SAXException());
    //WHEN
    underTest.parseSchema();
    //THEN exception is thrown
}