### Question:
DavHandler { public void saveText(String text, String url) throws IOException { InputStream is = new ByteArrayInputStream(text.getBytes()); saveStream(is, url); } 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 testSaveText() throws HttpException, IOException { DavHandler dav = new DavHandler(folders); dav .saveText("some text", "http: InputStream stream = new URL( "http: String text = IOUtils.toString(stream); assertEquals("some text", text); }