@Test
public void testRequestValidationFailsOnMin() {

  Set<ConstraintViolation<SearchOriginRequest>> violations = getValidator().validate(new SearchOriginRequest()
          .setLimit(-1)
  );
  assertEquals(1, violations.size());
  assertPropertyInvalid(violations, "limit");
}