### Question:
DavHandler { public void saveFiles(UrlParts urlParts, ToolResults urls) throws HttpException, IOException { String serviceDir = urlParts.service; String port = urlParts.port; String extension = urlParts.extension; String evaluationId = urlParts.evalId; String baseUrl = getFolderHierarchyUrl(); String serviceUrl = createFolder(baseUrl, serviceDir); serviceUrl = createFolder(serviceUrl, evaluationId); String portUrl = createFolder(serviceUrl, port); int i = 1; for (String sourceUrl : urls.getFields()) { try { String targetFileName = format(i) + "." + extension; copyFile(sourceUrl, portUrl + separator + targetFileName); i++; } catch (SSLHandshakeException e) { throw new SSLHandshakeException("URL: " + sourceUrl); } } } DavHandler(List<String> folderHierarchy); void saveLogs(String service, String evalId, List<String> logs); void saveText(String text, String url); void saveStream(InputStream stream, String url); void saveFiles(UrlParts urlParts, ToolResults urls); String getFolderHierarchyUrl(); String retrieveTextFile(String url); Set<String> getFileEndings();  }### Answer:
@Test public void testSaveFiles() throws HttpException, IOException { DavHandler dav = new DavHandler(folders); UrlParts urlParts = new UrlParts(); urlParts.service = "IMPACTTesseractV3Service"; urlParts.port = "outputUrl"; urlParts.extension = "txt"; String url1 = "http: String url2 = "http: ArrayList<String> urls = new ArrayList<String>(); urls.add(url1); urls.add(url2); ToolResults results = new ToolResults(); results.setFields(urls); dav.saveFiles(urlParts, results); new URL("http: new URL("http: }