* @return the Schema that was read in
*/
private Schema testReadingSchema(final String url) {
verbose("--> Reading XML Schema: " + url);
try {
SchemaReader reader = new SchemaReader();
reader.setSchemaContext(new SchemaContextImpl());
reader.setInputSource(new InputSource(url));
Schema returnValue = reader.read();
if (_failure != null && _failure.getContent() && _failure.getFailureStep() != null &&
_failure.getFailureStep().equals(FailureStepType.PARSE_SCHEMA)) {
fail("Reading/Parsing the schema was expected to fail, but succeeded");
}
return returnValue;