MockRequest request;
// Set a value in stringfield and submit with an action
// (no validation, thus no call to doParse())
request = new MockRequest();
request.addParameter("stringfield", "bar");
request.addParameter("action", "pressed");
form.process(new FormContext(request));
// Verify submit widget, just to be sure that validation did not occur
assertEquals("Form submit widget", button, form.getSubmitWidget());