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

	HttpResult httpResult = mock(HttpResult.class);
	when(result.use(HttpResult.class)).thenReturn(httpResult);
	factory.instanceFor(HttpResult.class, errors).sendError(404, "Not Found");
}