SimpleWsdl11Definition implements Wsdl11Definition, InitializingBean { @Override public Source getSource() { try { XMLReader xmlReader = XMLReaderFactory.createXMLReader(); xmlReader.setFeature("http: return new ResourceSource(xmlReader, wsdlResource); } catch (SAXException ex) { throw new WsdlDefinitionException("Could not create XMLReader", ex); } catch (IOException ex) { throw new WsdlDefinitionException("Could not create source from " + this.wsdlResource, ex); } } SimpleWsdl11Definition();  SimpleWsdl11Definition(Resource wsdlResource); @Override void afterPropertiesSet(); @Override Source getSource(); void setWsdl(Resource wsdlResource); String toString();  }
@Test public void testGetSource() throws Exception { Assert.assertNotNull("No source returned", definition.getSource()); }