@Test
public void shouldFlushWholeStreamToHttpResponse() throws IOException {

	ByteArrayDownload fd = new ByteArrayDownload(bytes, "type", "x.txt");
	fd.write(response);
	assertArrayEquals(bytes, outputStream.toByteArray());
}