@Test
public void shouldUseHeadersToHttpResponse() throws IOException {

	FileDownload fd = new FileDownload(file, "type", "x.txt", false);
	fd.write(response);
	
	verify(response, times(1)).setHeader("Content-type", "type");
	verify(response, times(1)).setHeader("Content-disposition", "inline; filename=x.txt");
	assertArrayEquals(bytes, outputStream.toByteArray());
}