### Question:
JackrabbitHotfolder extends ServerHotfolder implements
		Hotfolder, Serializable { @Override public void download(URI fromRemote, URI toLocal) throws IOException { String sourceUri = fromRemote.toString(); File targetFile = new File(toLocal); GetMethod getMethod = new GetMethod(sourceUri); InputStream responseStream = null; try { responseStream = execute(getMethod); fileAccess.copyStreamToFile(responseStream, targetFile); } finally { responseStream.close(); getMethod.releaseConnection(); } }  void configureConnection(String serverUrl, String username, String password); @Override void upload(URI fromLocal, URI toRemote); @Override void download(URI fromRemote, URI toLocal); @Override void delete(URI uri); @Override boolean exists(URI uri); @Override long getUsedSpace(URI uri); @Override byte[] getResponse(URI uri);  }### Answer:
@Test public void shouldDownloadToLocal() throws IOException, URISyntaxException { jackrabbitSut.download(new URI("http: verify(httpClientMock).executeMethod(any(GetMethod.class)); verify(fileAccessMock).copyStreamToFile(any(InputStream.class), any(File.class)); }