}
@Test
@TestForIssue(jiraKey = "HV-443")
public void testFindParameterConstraintLookingAt() {
ParameterDescriptor parameterDescriptor = getMethodDescriptor(
CustomerRepositoryExt.class,
"createCustomer",
CharSequence.class,
String.class
).getParameterDescriptors().get( 1 );
Set<ConstraintDescriptor<?>> constraintDescriptors = parameterDescriptor.findConstraints()
.lookingAt( Scope.LOCAL_ELEMENT )
.getConstraintDescriptors();
assertEquals( constraintDescriptors.size(), 0 );
constraintDescriptors = parameterDescriptor.findConstraints()
.lookingAt( Scope.HIERARCHY )
.getConstraintDescriptors();
assertEquals( constraintDescriptors.size(), 1 );
assertEquals(
constraintDescriptors.iterator().next().getAnnotation().annotationType(),