Buggy code:
public class WicketTesterTest extends TestCase { private boolean eventExecuted ; private WicketTester tester ; @ Override protected void setUp ( ) throws Exception { } @ Override protected void tearDown ( ) throws Exception { } public void testViewBook ( ) throws Exception { } public void testCreateBook_validateFail ( ) throws Exception { } public void testCreateBook_validatePass ( ) throws Exception { } public void testBookmarkableLink ( ) throws Exception { } public void testClickLink_setResponsePageClass ( ) throws Exception { } public void testClickLink_setResponsePage ( ) throws Exception { } public void testClickLink_ajaxLink_setResponsePageClass ( ) throws Exception { } public void testClickLink_ajaxLink_setResponsePage ( ) throws Exception { } public void testClickLink_ajaxFallbackLink_setResponsePageClass ( ) throws Exception { } public void testClickLink_ajaxFallbackLink_setResponsePage ( ) throws Exception { } public void testClickLink_ajaxSubmitLink_setResponsePage ( ) throws Exception { } public void testPageConstructor ( ) throws Exception { } public void testConstructorAndInnerPage ( ) throws Exception { } public void testAssertComponentOnAjaxResponse ( ) { } public void testAssertComponentOnAjaxResponse_encoding ( ) { } public void testExecuteAjaxEvent ( ) { } public void testClickLink_ajaxSubmitLink_checkGroup ( ) { } public void testExecuteAjaxEvent_ajaxFormSubmitLink ( ) { tester . startPage ( MockPageWithFormAndAjaxFormSubmitBehavior . class ) ; MockPageWithFormAndAjaxFormSubmitBehavior page = ( ( MockPageWithFormAndAjaxFormSubmitBehavior ) ( tester . getLastRenderedPage ( ) ) ) ; Pojo pojo = page . getPojo ( ) ; assertEquals ( "Mock<seq2seq4repair_space>name" , pojo . getName ( ) ) ; TextField < ? > name = ( ( TextField < ? > ) ( tester . getComponentFromLastRenderedPage ( "form:name" ) ) ) ; assertEquals ( "Mock<seq2seq4repair_space>name" , name . getValue ( ) ) ; assertFalse ( page . isExecuted ( ) ) ; <START_BUG> tester . getRequest ( ) . getPostRequestParameters ( ) . setParameterValue ( name . getInputName ( ) , "Mock<seq2seq4repair_space>name" ) ; <END_BUG> tester . executeAjaxEvent ( EVENT_COMPONENT , "onclick" ) ; assertTrue ( ( "AjaxFormSubmitBehavior.onSubmit()<seq2seq4repair_space>has<seq2seq4repair_space>not<seq2seq4repair_space>been<seq2seq4repair_space>executed<seq2seq4repair_space>in<seq2seq4repair_space>" + ( MockPageWithFormAndAjaxFormSubmitBehavior . class ) ) , page . isExecuted ( ) ) ; assertEquals ( "Mock<seq2seq4repair_space>name" , ( ( TextField < ? > ) ( tester . getComponentFromLastRenderedPage ( "form:name" ) ) ) . getValue ( ) ) ; assertNotNull ( "executeAjaxEvent()<seq2seq4repair_space>did<seq2seq4repair_space>not<seq2seq4repair_space>properly<seq2seq4repair_space>submit<seq2seq4repair_space>the<seq2seq4repair_space>form" , pojo . getName ( ) ) ; assertEquals ( "Mock<seq2seq4repair_space>name" , pojo . getName ( ) ) ; } public void testSubmittingFormWithAjaxEventSubmitsFormValues ( ) { } public void testRedirectWithPageParameters ( ) { } public void testClickResourceLink ( ) { } public void testToggleButtonEnabledState ( ) { } public void testToggleAjaxFormButton ( ) { } public void testCookieIsFoundWhenAddedToRequest ( ) { } public void testCookieIsFoundWhenAddedToResponse ( ) { } public void testCookieIsFoundOnNextRequestWhenAddedToResponse ( ) { } private void setTextFieldAndAssertSubmit ( boolean expected ) { } private Button getSubmitButton ( ) { } }

Fix:
tester . getRequest ( ) . getPostParameters ( ) . setParameterValue ( name . getInputName ( ) , "Mock<seq2seq4repair_space>name" ) ;