@TestForIssue(jiraKey = "HV-930")
public void two_meta_constraints_for_the_same_constraint_should_be_equal() throws Exception {
ConstraintDescriptorImpl<NotNull> constraintDescriptor1 = new ConstraintDescriptorImpl<NotNull>(
constraintHelper, barMethod, constraintAnnotation, METHOD
);
ConstraintLocation location1 = ConstraintLocation.forClass( Foo.class );
MetaConstraint<NotNull> metaConstraint1 = new MetaConstraint<NotNull>( constraintDescriptor1, location1 );
ConstraintDescriptorImpl<NotNull> constraintDescriptor2 = new ConstraintDescriptorImpl<NotNull>(
constraintHelper, barMethod, constraintAnnotation, METHOD
);
ConstraintLocation location2 = ConstraintLocation.forClass( Foo.class );
MetaConstraint<NotNull> metaConstraint2 = new MetaConstraint<NotNull>( constraintDescriptor2, location2 );
assertEquals(
metaConstraint1, metaConstraint2, "Two MetaConstraint instances for the same constraint should be equal"
);