}
@TestForIssue(jiraKey = "HV-500")
@Test(expectedExceptions = ValidationException.class, expectedExceptionsMessageRegExp = "HV000171.*")
public void testSameTypeConfiguredSeveralTimesInDifferentConstraintMappingsCausesException() {
ConstraintMapping marathonMapping1 = config.createConstraintMapping();
marathonMapping1.type( Marathon.class )
.defaultGroupSequenceProviderClass( MarathonDefaultGroupSequenceProvider.class );
ConstraintMapping marathonMapping2 = config.createConstraintMapping();
marathonMapping2.type( Marathon.class )
.defaultGroupSequenceProviderClass( MarathonDefaultGroupSequenceProvider.class );
config.addMapping( marathonMapping1 );
config.addMapping( marathonMapping2 );