@Test
public void shouldThrowResultExceptionIfAnIOExceptionWhenWriteInputStreamBody() throws Exception {

	doThrow(new IOException()).when(response).getOutputStream();
	InputStream in = new ByteArrayInputStream("the text".getBytes());
	
	try {
		httpResult.body(in);
		fail("should throw ResultException");
	} catch (ResultException e) {
		
	}
}