private CarDealer getCardealer() throws NumberFormatException, MalformedURLException { URL wsdl = getClass().getResource("/wsdl/cardealer.wsdl"); assertNotNull("WSDL is null", wsdl); CarDealerService service = new CarDealerService(wsdl, serviceName); assertNotNull("Service is null ", service); CarDealer dealer = service.getCarDealerPort(); updateAddressPort(dealer, PORT); return dealer; } }