### Question:
WsdlParser { public static Collection<ServiceInfo> parseWSDL(String wsdlUrl) throws WsdlNotFoundException, WsdlParseException { try { return internalParseWSDL(wsdlUrl); } catch (PrivateWsdlNotFoundException e) { log.error("Reading WSDL from {} failed", wsdlUrl, e); throw new WsdlNotFoundException(e); } catch (Exception e) { log.error("Reading WSDL from {} failed", wsdlUrl, e); throw new WsdlParseException(clarifyWsdlParsingException(e)); } } private  WsdlParser(); static Collection<ServiceInfo> parseWSDL(String wsdlUrl);  }### Answer:
@Test public void readValidWsdl() throws Exception { Collection<WsdlParser.ServiceInfo> si = WsdlParser.parseWSDL("file:src/test/resources/wsdl/valid.wsdl"); assertEquals(3, si.size()); }
@Test(expected = WsdlParser.WsdlParseException.class) public void readInvalidWsdl() throws Exception { WsdlParser.parseWSDL("file:src/test/resources/wsdl/invalid.wsdl"); }
@Test(expected = WsdlParser.WsdlNotFoundException.class) public void readWsdlFromInvalidUrl() throws Exception { WsdlParser.parseWSDL("http: }
@Test(expected = WsdlParser.WsdlParseException.class) public void readFaultInsteadOfWsdl() throws Exception { WsdlParser.parseWSDL("file:src/test/resources/fault.xml"); }
@Test(expected = WsdlParser.WsdlNotFoundException.class) public void tryReadNotFoundWsdl() throws Exception { WsdlParser.parseWSDL("file:src/test/resources/wsdl/notfound.wsdl"); }