@Test(expected=ValidationException.class)
public void onRefererResultShouldThrowExceptionsOnRedirect() throws Exception {

	RefererResult referer = mock(RefererResult.class);
	when(result.use(RefererResult.class)).thenReturn(referer);
	factory.instanceFor(RefererResult.class, errors).redirect();
}