@Test
public void shouldFlushWholeFileToHttpResponse() throws IOException {

	FileDownload fd = new FileDownload(file, "type");
	fd.write(response);
	assertArrayEquals(bytes, outputStream.toByteArray());
}