### Question:
JackrabbitHotfolder extends ServerHotfolder implements
		Hotfolder, Serializable { @Override public byte[] getResponse(URI uri) throws IOException { GetMethod getMethod = new GetMethod(uri.toString()); InputStream responseStream = null; try { responseStream = execute(getMethod); byte[] responseBytes = IOUtils.toByteArray(responseStream); return responseBytes; } 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 shouldTryToGetResponse() throws IOException, URISyntaxException { byte[] response = jackrabbitSut.getResponse(new URI("http: verify(httpClientMock).executeMethod(any(GetMethod.class)); assertFalse("Response may not be null", response == null); assertTrue("Response should be empty", response.length == 0); }