WsimportOptions importOptions = new WsimportOptions();
URL resource = Thread.currentThread().getContextClassLoader().getResource("testPolicyTWSDLExtension.wsdl");
importOptions.addWSDL(new File(resource.getFile()));
final Listener listener = new Listener();
// another fake impl
ErrorReceiverFilter receiver = new ErrorReceiverFilter(listener) {
public void info(SAXParseException exception) {
}
public void warning(SAXParseException exception) {
}
@Override
public void pollAbort() throws AbortException {
}
};
WSDLModeler wsdlModeler = new WSDLModeler(importOptions, receiver);
Model model = wsdlModeler.buildModel();
assertNotNull(model);