public void testWsdlReferenceValidator() {
try {
env.put(ToolConstants.CFG_SCHEMA_DIR, getLocation("/schemas"));
env.put(ToolConstants.CFG_WSDLURL, getLocation("/wsdl/hello_world_error_reference.wsdl"));
WSDL11Validator validator = new WSDL11Validator(null, env);
validator.isValid();
fail("validate exception should be thrown");
} catch (Exception e) {
String errMsg = e.getMessage();
assertTrue("Part reference error should be located ", errMsg.indexOf("line 57 column 54") > -1);
assertTrue("Part reference error should be located ", errMsg.indexOf("line 69 column 46") > -1);