Buggy code:
public class ErrorsTagTests extends AbstractFormTagTests { private static final String COMMAND_NAME = "testBean" ; private ErrorsTag tag ; @ Override @ SuppressWarnings ( "serial" ) protected void onSetUp ( ) { } @ Override protected TestBean createTestBean ( ) { } public void testWithExplicitNonWhitespaceBodyContent ( ) throws Exception { } public void testWithExplicitWhitespaceBodyContent ( ) throws Exception { } public void testWithExplicitEmptyWhitespaceBodyContent ( ) throws Exception { } public void testWithErrors ( ) throws Exception { } public void testWithErrorsAndDynamicAttributes ( ) throws Exception { } public void testWithEscapedErrors ( ) throws Exception { } public void testWithNonEscapedErrors ( ) throws Exception { <START_BUG> this . tag . setHtmlEscape ( "false" ) ; <END_BUG> TestBean target = new TestBean ( ) ; target . setName ( "Rob<seq2seq4repair_space>Harrop" ) ; Errors errors = new org . springframework . validation . BeanPropertyBindingResult ( target , ErrorsTagTests . COMMAND_NAME ) ; errors . rejectValue ( "name" , "some.code" , "Default<seq2seq4repair_space><><seq2seq4repair_space>Message" ) ; errors . rejectValue ( "name" , "too.short" , "Too<seq2seq4repair_space>&<seq2seq4repair_space>Short" ) ; exposeBindingResult ( errors ) ; int result = this . tag . doStartTag ( ) ; assertEquals ( EVAL_BODY_BUFFERED , result ) ; result = this . tag . doEndTag ( ) ; assertEquals ( EVAL_PAGE , result ) ; String output = getOutput ( ) ; assertElementTagOpened ( output ) ; assertElementTagClosed ( output ) ; assertContainsAttribute ( output , "id" , "name.errors" ) ; assertBlockTagContains ( output , "<br//>" ) ; assertBlockTagContains ( output , "Default<seq2seq4repair_space><><seq2seq4repair_space>Message" ) ; assertBlockTagContains ( output , "Too<seq2seq4repair_space>&<seq2seq4repair_space>Short" ) ; } public void testWithErrorsAndCustomElement ( ) throws Exception { } public void testWithoutErrors ( ) throws Exception { } public void testWithoutErrorsInstance ( ) throws Exception { } public void testAsBodyTag ( ) throws Exception { } public void testAsBodyTagWithExistingMessagesAttribute ( ) throws Exception { } public void testAsBodyTagWithErrorsAndExistingMessagesAttributeInNonPageScopeAreNotClobbered ( ) throws Exception { } public void testAsBodyTagWithNoErrorsAndExistingMessagesAttributeInApplicationScopeAreNotClobbered ( ) throws Exception { } public void testAsBodyTagWithNoErrorsAndExistingMessagesAttributeInSessionScopeAreNotClobbered ( ) throws Exception { } public void testAsBodyTagWithNoErrorsAndExistingMessagesAttributeInPageScopeAreNotClobbered ( ) throws Exception { } public void testAsBodyTagWithNoErrorsAndExistingMessagesAttributeInRequestScopeAreNotClobbered ( ) throws Exception { } public void testOmittedPathMatchesObjectErrorsOnly ( ) throws Exception { } public void testSpecificPathMatchesSpecificFieldOnly ( ) throws Exception { } public void testStarMatchesAllErrors ( ) throws Exception { } @ Override protected void exposeBindingResult ( Errors errors ) { } private void assertElementTagOpened ( String output ) { } private void assertElementTagClosed ( String output ) { } private void assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered ( int scope ) throws JspException { } }

Fix:
this . tag . setHtmlEscape ( false ) ;