Buggy code:
@ RunWith ( JunitExtRunner . class ) public class SCMConfigXmlLoaderTest extends BaseConfigXmlLoaderTest { static final String VALID_SCM = "<seq2seq4repair_space><scm<seq2seq4repair_space>id='scm-id'<seq2seq4repair_space>name='name1'><pluginConfiguration<seq2seq4repair_space>id='id'<seq2seq4repair_space>version='1.0'//><configuration><property><key>url<//key><value>http:////go<//value><//property><//configuration><//scm>" ; static final String VALID_SCM_WITH_ID_NAME = "<seq2seq4repair_space><scm<seq2seq4repair_space>id='%s'<seq2seq4repair_space>name='%s'><pluginConfiguration<seq2seq4repair_space>id='id'<seq2seq4repair_space>version='1.0'//><configuration><property><key>url<//key><value>http:////go<//value><//property><//configuration><//scm>" ; static final String SCM_WITH_MISSING_ID = "<seq2seq4repair_space><scm<seq2seq4repair_space>name='name1'><pluginConfiguration<seq2seq4repair_space>id='id'<seq2seq4repair_space>version='1.0'//><configuration><property><key>url<//key><value>http:////go<//value><//property><//configuration><//scm>" ; static final String SCM_WITH_INVALID_ID = "<seq2seq4repair_space><scm<seq2seq4repair_space>id='id<seq2seq4repair_space>with<seq2seq4repair_space>space'<seq2seq4repair_space>name='name1'><pluginConfiguration<seq2seq4repair_space>id='id'<seq2seq4repair_space>version='1.0'//><configuration><property><key>url<//key><value>http:////go<//value><//property><//configuration><//scm>" ; static final String SCM_WITH_EMPTY_ID = "<seq2seq4repair_space><scm<seq2seq4repair_space>id=''<seq2seq4repair_space>name='name1'><pluginConfiguration<seq2seq4repair_space>id='id'<seq2seq4repair_space>version='1.0'//><configuration><property><key>url<//key><value>http:////go<//value><//property><//configuration><//scm>" ; static final String SCM_WITH_MISSING_NAME = "<seq2seq4repair_space><scm<seq2seq4repair_space>id='id'<seq2seq4repair_space>><pluginConfiguration<seq2seq4repair_space>id='id'<seq2seq4repair_space>version='1.0'//><configuration><property><key>url<//key><value>http:////go<//value><//property><//configuration><//scm>" ; static final String SCM_WITH_INVALID_NAME = "<seq2seq4repair_space><scm<seq2seq4repair_space>id='id'<seq2seq4repair_space>name='name<seq2seq4repair_space>with<seq2seq4repair_space>space'><pluginConfiguration<seq2seq4repair_space>id='id'<seq2seq4repair_space>version='1.0'//><configuration><property><key>url<//key><value>http:////go<//value><//property><//configuration><//scm>" ; static final String SCM_WITH_EMPTY_NAME = "<seq2seq4repair_space><scm<seq2seq4repair_space>id='id'<seq2seq4repair_space>name=''><pluginConfiguration<seq2seq4repair_space>id='id'<seq2seq4repair_space>version='1.0'//><configuration><property><key>url<//key><value>http:////go<//value><//property><//configuration><//scm>" ; @ Test public void shouldThrowXsdValidationWhenSCMIdsAreDuplicate ( ) throws Exception { String xml = ( ( ( ( "<cruise<seq2seq4repair_space>schemaVersion='" + ( GoConstants . CONFIG_SCHEMA_VERSION ) ) + "\'><scms>\n" ) + ( SCMConfigXmlLoaderTest . VALID_SCM ) ) + ( SCMConfigXmlLoaderTest . VALID_SCM ) ) + "<seq2seq4repair_space><//scms><//cruise>" ; try { xmlLoader . loadConfigHolder ( xml ) ; fail ( "should<seq2seq4repair_space>have<seq2seq4repair_space>thrown<seq2seq4repair_space>XsdValidationException" ) ; } catch ( XsdValidationException e ) { <START_BUG> assertThat ( e . getMessage ( ) , is ( "Duplicate<seq2seq4repair_space>unique<seq2seq4repair_space>value<seq2seq4repair_space>[scm-id]<seq2seq4repair_space>declared<seq2seq4repair_space>for<seq2seq4repair_space>identity<seq2seq4repair_space>constraint<seq2seq4repair_space>\"uniqueSCMId\"<seq2seq4repair_space>of<seq2seq4repair_space>element<seq2seq4repair_space>\"scms\"." ) ) ; <END_BUG> } } @ Test public void shouldThrowXsdValidationWhenSCMIdIsEmpty ( ) throws Exception { } @ Test public void shouldThrowXsdValidationWhenSCMIdIsInvalid ( ) throws Exception { } @ Test public void shouldThrowXsdValidationWhenSCMNamesAreDuplicate ( ) throws Exception { } @ Test public void shouldThrowXsdValidationWhenSCMNameIsMissing ( ) throws Exception { } @ Test public void shouldThrowXsdValidationWhenSCMNameIsEmpty ( ) throws Exception { } @ Test public void shouldThrowXsdValidationWhenSCMNameIsInvalid ( ) throws Exception { } @ Test public void shouldGenerateSCMIdWhenMissing ( ) throws Exception { } @ Test public void shouldFailValidationIfSCMWithDuplicateFingerprintExists ( ) throws Exception { } @ Test public void shouldLoadAutoUpdateValueForSCMWhenLoadedFromConfigFile ( ) throws Exception { } @ Test public void shouldResolveSCMReferenceElementForAMaterialInConfig ( ) throws Exception { } @ Test public void shouldReadFolderAndFilterForPluggableSCMMaterialConfig ( ) throws Exception { } @ Test public void shouldBeAbleToResolveSecureConfigPropertiesForSCMs ( ) throws Exception { } }

Fix:
assertThat ( e . getMessage ( ) , is ( "Duplicate<seq2seq4repair_space>unique<seq2seq4repair_space>value<seq2seq4repair_space>[scm-id]<seq2seq4repair_space>declared<seq2seq4repair_space>for<seq2seq4repair_space>identity<seq2seq4repair_space>constraint<seq2seq4repair_space>\"uniqueSCMId\"<seq2seq4repair_space>of<seq2seq4repair_space>element<seq2seq4repair_space>\"cruise\"." ) ) ;