@Test
public void testOptionalUnwrappedCascadableExecutableParameter() throws Exception {
ExecutableValidator executableValidator = validator.forExecutables();
Method method = Fubar.class.getMethod( "setBar", Optional.class );
Object[] values = { Optional.of( new Bar() ) };
Set<ConstraintViolation<Fubar>> constraintViolations = executableValidator.validateParameters(
new Fubar(),
method,
values
);
assertNumberOfViolations( constraintViolations, 1 );