@Test
public void shouldUseHeadersToHttpResponse() throws IOException {

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