@Test
public void shouldRaiseConstraintViolationOnCalculatePriceCauseRateIsTooLow() throws NoSuchMethodException {
Item10 item = new Item10("H2G2", 12.5f, "Best IT Scifi Book");
ExecutableValidator methodValidator = validator.forExecutables();
Method method = Item10.class.getMethod("calculatePrice", Float.class);
Set<ConstraintViolation<Item10>> violations = methodValidator.validateParameters(item, method, new Object[]{new Float(0.5)});
displayContraintViolations(violations);
assertEquals(1, violations.size());
}