@Test(expected = ResultException.class)
public void shouldThrowResultExceptionIfIOExceptionOccursWhileRedirect() throws Exception {

	doThrow(new IOException()).when(response).sendRedirect(anyString());
	view.redirectTo("/any/url");
}