public void voidMethodWithReturnValueConstraintCausesConstraintDeclarationException() {
CustomerRepositoryWithConstrainedVoidMethod customerRepository = getValidatingProxy(
new CustomerRepositoryWithConstrainedVoidMethodImpl(), validator
);
customerRepository.voidMethodWithIllegalReturnValueConstraint();
}
@TestForIssue(jiraKey = "HV-601")
@Test(expectedExceptions = ConstraintViolationException.class)
public void shouldValidateGetterLikeNamedMethodWithParameter() {