List<FieldErrorJson> errors = res.getErrors();
Collections.sort(errors);
assertThat(errors.size(), equalTo(2));
FieldErrorJson e0 = errors.get(0);
assertThat(e0.getName(), equalTo("notNull"));
assertThat(e0.getMessage(), not(equalTo("")));
FieldErrorJson e1 = errors.get(1);
assertThat(e1.getName(), equalTo("positive"));
assertThat(e1.getMessage(), not(equalTo("")));
String url = res.getRedirectUrl();
assertThat(url, is(nullValue()));
}