@Test
public void shouldUseHeadersToHttpResponse() throws IOException {

	InputStreamDownload fd = new InputStreamDownload(inputStream, "type", "x.txt");
	fd.write(response);
	verify(response).setHeader("Content-type", "type");
	assertArrayEquals(bytes, outputStream.toByteArray());
}